APKBUILD 1.48 KB
Newer Older
Timo Teräs's avatar
Timo Teräs committed
1 2 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=isl
Timo Teräs's avatar
Timo Teräs committed
4
pkgver=0.17.1
Timo Teräs's avatar
Timo Teräs committed
5 6
pkgrel=0
pkgdesc="An Integer Set Library for the Polyhedral Model"
Natanael Copa's avatar
Natanael Copa committed
7
url="http://isl.gforge.inria.fr/"
Timo Teräs's avatar
Timo Teräs committed
8 9
arch="all"
license="MIT"
Fabian Affolter's avatar
Fabian Affolter committed
10
depends=""
Timo Teräs's avatar
Timo Teräs committed
11
depends_dev="gmp-dev"
12 13
makedepends_host="$depends_dev"
makedepends="$makedepends_host"
Timo Teräs's avatar
Timo Teräs committed
14 15 16
replaces="cloog"
install=""
subpackages="$pkgname-dev"
Timo Teräs's avatar
Timo Teräs committed
17
source="http://isl.gforge.inria.fr/isl-$pkgver.tar.bz2"
Timo Teräs's avatar
Timo Teräs committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
32 33 34 35
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Timo Teräs's avatar
Timo Teräs committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-sysroot=${CBUILDROOT} \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" INSTALL="install -D" install || return 1
}

dev() {
	default_dev || return 1
	replaces="cloog-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/
}

Timo Teräs's avatar
Timo Teräs committed
57 58 59
md5sums="5184f543a013165e8057be59728664b1  isl-0.17.1.tar.bz2"
sha256sums="d6307bf9a59514087abac3cbaab3d99393a0abb519354f7e7834a8c842310daa  isl-0.17.1.tar.bz2"
sha512sums="b84f6cab0d9fc7cb64f3afc35fc5f8c05db3456c569510788d65d402ebe8116eb49c327b8055eaebdfd0cac4764f279c1832d5440db6ffa0e52331ac52096058  isl-0.17.1.tar.bz2"