Date: Monday, February 20, 2023 @ 18:44:30
Author: arodseth
Revision: 1403141
archrelease: copy trunk to community-x86_64
Added:
libsquish/repos/community-x86_64/PKGBUILD
(from rev 1403140, libsquish/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: libsquish/repos/community-x86_64/PKGBUILD (from rev 1403140,
libsquish/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-20 18:44:30 UTC (rev 1403141)
@@ -0,0 +1,30 @@
+# Maintainer: Alexander F. Rødseth <[email protected]>
+# Contributor: Davorin Učakar <[email protected]>
+
+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"
+}