29 lines
891 B
Bash
29 lines
891 B
Bash
|
# Template file for 'arb'
|
||
|
pkgname=arb
|
||
|
version=2.20.0
|
||
|
revision=1
|
||
|
build_style=configure
|
||
|
configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-flint=/usr"
|
||
|
makedepends="flintlib-devel"
|
||
|
short_desc="C library for arbitrary-precision interval arithmetic"
|
||
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||
|
license="LGPL-2.1-or-later"
|
||
|
homepage="https://arblib.org"
|
||
|
distfiles="https://github.com/fredrik-johansson/arb/archive/${version}.tar.gz"
|
||
|
checksum=d2f186b10590c622c11d1ca190c01c3da08bac9bc04e84cb591534b917faffe7
|
||
|
|
||
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||
|
# on glibc this would give a conflict with function fdiv()
|
||
|
CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t
|
||
|
fi
|
||
|
|
||
|
arb-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove "usr/lib/*.a"
|
||
|
vmove "usr/lib/*.so"
|
||
|
}
|
||
|
}
|