mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/libxisf: new aport
This commit is contained in:
parent
53235bbe1a
commit
71c4dc0bc5
38
testing/libxisf/APKBUILD
Normal file
38
testing/libxisf/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
||||
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||
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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user