APKBUILD 1.12 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
tmpfile's avatar
tmpfile committed
4
pkgver=0.18
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

tmpfile's avatar
tmpfile committed
19
builddir="$srcdir"/$pkgname-$pkgver
Timo Teräs's avatar
Timo Teräs committed
20 21

build() {
tmpfile's avatar
tmpfile committed
22
	cd "$builddir"
23 24 25 26
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Timo Teräs's avatar
Timo Teräs committed
27 28 29
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
tmpfile's avatar
tmpfile committed
30 31
		--with-sysroot=${CBUILDROOT}
	make
Timo Teräs's avatar
Timo Teräs committed
32 33 34
}

package() {
tmpfile's avatar
tmpfile committed
35 36
	cd "$builddir"
	make DESTDIR="$pkgdir" INSTALL="install -D" install
Timo Teräs's avatar
Timo Teräs committed
37 38 39
}

dev() {
tmpfile's avatar
tmpfile committed
40
	default_dev
Timo Teräs's avatar
Timo Teräs committed
41 42 43 44 45 46
	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/
}

tmpfile's avatar
tmpfile committed
47
sha512sums="85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94  isl-0.18.tar.bz2"