summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb7d238deee9fae33146f759c4c5ae8242ac51cf (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
40
41
42
43
44
45
46
47
48
# Maintainer: Deian Stefan
# Partly based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=apron

_pkgname=apron
pkgname=apron-git
pkgver=r237.9ad5af8
pkgrel=1
pkgdesc='The Apron Numerical Abstract Domain Library'
arch=('any')
url='https://github.com/antoinemine/apron'
license=('LGPL')
depends=('gmp' 'mpfr' 'ppl')
makedepends=()
provides=('apron')
conflicts=('apron')
source=('git://github.com/antoinemine/apron.git')
sha256sums=('SKIP')
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $srcdir
}

build() {

  cd "$srcdir/apron"

  ./configure -no-cxx -no-java -no-ocamlfind -no-ocaml-plugins
  make

}

package() {
 cd "$srcdir/apron"
 make APRON_PREFIX="$pkgdir"/usr install

 # fix include/ permissions
 find "$pkgdir"/usr/include -type d -exec chmod 755 '{}' ';'
 find "$pkgdir"/usr/include -type f -exec chmod 644 '{}' ';'

 # remove test binaries
 rm "$pkgdir"/usr/bin/*test*
}