1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/kealib/APKBUILD
2023-01-26 20:36:23 +00:00

47 lines
1.2 KiB
Text
Executable file

# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=kealib
pkgver=1.5.0
pkgrel=0
pkgdesc="KEA is an image file format that provides a full implementation of the GDAL data model"
url="http://www.kealib.org/"
arch="all"
license="MIT"
makedepends="
cmake
hdf5-dev
samurai
"
subpackages="
$pkgname-dev
"
source="
https://github.com/ubarsc/kealib/releases/download/kealib-$pkgver/kealib-$pkgver.tar.gz
10-config-shell.patch
"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
bbd97462c402704f974065d5a42c9853cc8c5cee7fe40e399707fa71293e7faf2cd68d975a1ca0086818cfa5ebfe17f8dee46fa969345374d4440dcc98b19b13 kealib-1.5.0.tar.gz
fe77138269e4b0f375d1d670fd41661784d59bf8eaaea5339bd95e669bee07ff81ca7a50798981ced7ffbd6f480e2e36801e2e580d298b864acc85b7864735c3 10-config-shell.patch
"