Date: Monday, February 20, 2023 @ 18:44:15
  Author: arodseth
Revision: 1403140

Move libsquish from AUR (27 votes). Can be used by Godot.

Added:
  libsquish/
  libsquish/repos/
  libsquish/repos/community-x86_64/
  libsquish/trunk/
  libsquish/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: libsquish/trunk/PKGBUILD
===================================================================
--- libsquish/trunk/PKGBUILD                            (rev 0)
+++ libsquish/trunk/PKGBUILD    2023-02-20 18:44:15 UTC (rev 1403140)
@@ -0,0 +1,30 @@
+# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org>
+# Contributor: Davorin Učakar <davorin.uca...@gmail.com>
+
+pkgname=libsquish
+pkgver=1.15
+pkgrel=3
+pkgdesc='DXT compression library'
+arch=(x86_64)
+url='https://sourceforge.net/projects/libsquish'
+license=(MIT)
+makedepends=(cmake ninja openmp)
+source=("https://downloads.sourceforge.net/project/libsquish/libsquish-$pkgver.tgz";)
 # exploding tarball
+b2sums=('d2cdf274baf9cf8890ee4c5c434448a34bc6d3d8967df6e2e9334fe1eff66ce5371597396c564c80a128709a8849f1f622d90aaf470eacc1ad67811cef38bd60')
+
+build() {
+  cmake \
+    -B build \
+    -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D BUILD_SHARED_LIBS=ON \
+    -G Ninja \
+    -S .
+  ninja -C build
+}
+
+package() {
+  (cd build; cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" -P 
cmake_install.cmake)
+  install -Dm644 CMakeModules/FindlibSquish.cmake 
"$pkgdir/usr/share/cmake/Modules/FindlibSquish.cmake"
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Reply via email to