From b5974e0c08a535b706d76dc1ecb34b61eb704af0 Mon Sep 17 00:00:00 2001 From: Emyr Thomas Date: Mon, 2 Aug 2021 17:23:14 +0100 Subject: [PATCH] basisu 1.15 (new formula) New formula for Basis Universal GPU Texture Codec command-line compression tool Closes #82442. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Aliases/basisu | 1 + Formula/basis_universal.rb | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 Aliases/basisu create mode 100644 Formula/basis_universal.rb diff --git a/Aliases/basisu b/Aliases/basisu new file mode 120000 index 00000000000..e57a4ca0d28 --- /dev/null +++ b/Aliases/basisu @@ -0,0 +1 @@ +../Formula/basis_universal.rb \ No newline at end of file diff --git a/Formula/basis_universal.rb b/Formula/basis_universal.rb new file mode 100644 index 00000000000..1ab4747bc45 --- /dev/null +++ b/Formula/basis_universal.rb @@ -0,0 +1,20 @@ +class BasisUniversal < Formula + desc "Basis Universal GPU texture codec command-line compression tool" + homepage "https://github.com/BinomialLLC/basis_universal" + url "https://github.com/BinomialLLC/basis_universal/archive/refs/tags/v1.15_rel2.tar.gz" + version "1.15" + sha256 "c7ada78211517176ac5d38850337500d132813e2c0af3bf338e66cac71ee5153" + license "Apache-2.0" + + depends_on "cmake" => :build + + def install + system "cmake", ".", *std_cmake_args + system "make", "install" + end + + test do + system "#{bin}/basisu", test_fixtures("test.png") + assert_predicate testpath/"test.basis", :exist? + end +end