diff --git a/testing/libxisf/APKBUILD b/testing/libxisf/APKBUILD new file mode 100644 index 00000000000..5755fa87933 --- /dev/null +++ b/testing/libxisf/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Clayton Craft +# Maintainer: Clayton Craft +pkgname=libxisf +pkgver=0.2.11 +pkgrel=0 +pkgdesc="library to load and write XISF format from PixInsight" +url="https://gitea.nouspiro.space/nou/libXISF" +arch="all" +license="GPL-3.0-or-later" +makedepends="cmake samurai" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://gitea.nouspiro.space/nou/libXISF/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=None \ + $crossopts + cmake --build build +} + +check() { + ctest --test-dir build --output-on-failure +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +31bca45ca1c205ee67d4c49966361967e7f8ca14470b13d64142b14de5fcf34e4b471670f2c466946f2c7a8c9727dc3b747739cb6132e83abf97745a82fc1f57 libxisf-0.2.11.tar.gz +"