aports/testing/libgivaro/APKBUILD

48 lines
1.2 KiB
Text

# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=libgivaro
pkgver=4.2.0
pkgrel=2
pkgdesc="C++ library for arithmetic and algebraic computations"
url="https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro"
arch="all"
license="CECILL-B"
makedepends="gmp-dev"
source="https://github.com/linbox-team/givaro/releases/download/v$pkgver/givaro-$pkgver.tar.gz
gcc13.patch
gcc14.patch
"
subpackages="$pkgname-static $pkgname-dev"
builddir="$srcdir/givaro-$pkgver"
prepare() {
default_prepare
update_config_sub
}
build() {
export CFLAGS="${CFLAGS/-Os/-O3}" # gotta go fast
./configure \
--target="$CTARGET" \
--build="$CBUILD" \
--host="$CHOST" \
--prefix=/usr \
--program-prefix=
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -r "${pkgdir:?}"/usr/share
}
sha512sums="
1a3280563181710d364b77e1efe8c8f52ce3119a08b35f329cfd98136a742431b7e9d102289448d337797f815439682d0cfce1567a5a88d5851b244673a84486 givaro-4.2.0.tar.gz
6a6c02d78c287d48e10b8a9c5b294867fca1e523f28b55e6ee8596ada014360adbb026eef3282e816532c40a0e803010a870a1f62a990aaeb470507e7f191645 gcc13.patch
7a92b519217610ca85989bf1f1aca2d7e414ca9afc016840c31f829f868386ac82677fde05e767ed9ccb2beebae081ac8c3e0b2d9a2914d18cf9312ae6f7387f gcc14.patch
"