aports/testing/marxan/APKBUILD
2022-10-24 15:55:14 +02:00

33 lines
838 B
Text

# Contributor: andrea rota <andrea.rota@vizzuality.com>
# Maintainer: andrea rota <andrea.rota@vizzuality.com>
pkgname=marxan
pkgver=4.0.7
pkgrel=1
pkgdesc="Systematic reserve design for conservation planning"
url="https://marxansolutions.org/"
license="MIT"
arch="all"
# Building of tests is currently broken in upstream tree: bypassing them for the
# time being via options="!check"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/Marxan-source-code/marxan/archive/refs/tags/v$pkgver.tar.gz
"
build() {
export CXXFLAGS="$CXXFLAGS -O3 -std=c++17 -fopenmp"
make
}
check() {
cd test
make
./test
}
package() {
make install DESTDIR="$pkgdir"
}
sha512sums="
416d101173524efb09a572a7291a58fa96cd747c64bff601dbf0998916bf7972a2cf5994c4acde905badcdc1bdf1c39f32863a3ba17ce8aa5a84835a29eae3cd marxan-4.0.7.tar.gz
"