mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 08:42:11 +01:00
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
# 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
|
|
"
|
|
subpackages="$pkgname-static $pkgname-dev"
|
|
builddir="$srcdir/givaro-$pkgver"
|
|
|
|
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
|
|
"
|