aports/main/isl26/APKBUILD
2023-04-11 18:01:21 +02:00

54 lines
1.3 KiB
Text

# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
# this package needs special care since it is a part of the toolchain.
# we need to be able to have the old version installed in parallel with
# a new with ABI breaking change. That is why we have the version
# as a part of the pkgname.
pkgname=isl26
pkgver=0.26
pkgrel=1
pkgdesc="An Integer Set Library for the Polyhedral Model"
url="http://isl.gforge.inria.fr/"
arch="all"
license="MIT"
depends_dev="gmp-dev"
makedepends_host="$depends_dev"
makedepends="$makedepends_host"
subpackages="isl-dev:_dev"
source="https://libisl.sourceforge.io/isl-$pkgver.tar.bz2"
builddir="$srcdir"/isl-$pkgver
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-sysroot=$CBUILDROOT
make
}
check() {
make check
}
package() {
replaces="isl24 isl25" # they have the same soname
make DESTDIR="$pkgdir" INSTALL="install -D" install
}
_dev() {
default_dev
mkdir -p "$subpkgdir"/usr/share/gdb/python/auto-load/usr/lib
mv "$pkgdir"/usr/lib/*-gdb.py \
"$subpkgdir"/usr/share/gdb/python/auto-load/usr/lib/
}
sha512sums="
492deba2cbfc693efb41621861a0679390becf2777e32111aceef8db1d38d772385dfd83cee14a41c930f9904549334e4d6dc2c5fce0c69e0bef9c8cf031d6b5 isl-0.26.tar.bz2
"