updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / polybori / PKGBUILD
blob8f9f5bac73d17ec823a0a46d47660e4abfcb2e75
1 # Maintainer: Rémy Oudompheng <oudomphe@clipper.ens.fr>
2 pkgname=polybori
3 pkgver=0.7.1
4 pkgrel=1
5 pkgdesc="Library for polynomials over boolean rings"
6 arch=('i686' 'x86_64')
7 url="http://polybori.sourceforge.net/"
8 license=('GPL')
9 depends=('python2' 'boost-libs' 'ipython')
10 # uncomment to use system m4ri library
11 #depends+=('m4ri')
12 makedepends=('boost' 'scons') # 'hevea')
13 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver}.tar.gz
14         custom.py)
15 md5sums=('75d96d234c53dc40ea05a41975b0d80b'
16          '20e5df185f00bf4387d9e23955a970f2')
18 build() {
19   cd "${srcdir}/polybori-${pkgver%.*}"
20   cp -f ../custom.py .
22   export pkgdir
23   export PYTHONSITE=/usr/lib/python2.7/site-packages
24   scons -j4 prepare-devel PYTHON=python2
27 package() {
28   cd "${srcdir}/polybori-${pkgver%.*}"
29   scons devel-install PYTHON=python2
30   scons install PYTHON=python2
32   find ${pkgdir}/usr/include -name '*.h' -exec chmod 644 {} +
33   find ${pkgdir}/usr/include -name '*.hh' -exec chmod 644 {} +