summaryrefslogtreecommitdiff
path: root/core/cloog/PKGBUILD
blob: d5a38a163d93727d9e1e9dc727c50df5967049d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 188781 2013-06-20 06:35:09Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>

pkgname=cloog
pkgver=0.18.0
pkgrel=2
pkgdesc="Library that generates loops for scanning polyhedra"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.bastoul.net/cloog/"
license=('GPL')
depends=('isl' 'gmp')
options=('!libtool')
source=(http://www.bastoul.net/cloog/pages/download/$pkgname-$pkgver.tar.gz
        cloog-0.18.0-isl-0.11.2.patch)
md5sums=('be78a47bd82523250eb3e91646db5b3d'
         '1bec9a7f1c3e9e0f3f10f23898f7148d')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  
  # test-suite fix - commit fc8b0627
  patch -p1 -i $srcdir/cloog-0.18.0-isl-0.11.2.patch
}

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --with-isl=system
  make
}

check() {
  cd $srcdir/$pkgname-$pkgver
  make check
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir/ install
}