diff options
author | xpt | 2016-02-16 00:15:39 -0300 |
---|---|---|
committer | xpt | 2016-02-16 00:15:39 -0300 |
commit | e2910df70aa93bd52384fc3cac4447eb199cd82a (patch) | |
tree | e9860186ad47d863ecf5acf37c7e8223ae00c5f3 /PKGBUILD | |
download | aur-e2910df70aa93bd52384fc3cac4447eb199cd82a.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b6f675eff586 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=voro++ +pkgver=0.4.6 +pkgrel=1 +pkgdesc="A free software library for the computation of three dimensional Voronoi cells." +arch=('i686' 'x86_64') +url="http://math.lbl.gov/voro++/" +license=('BSD') +depends=('perl' 'gcc-libs') +options=(staticlibs) +source=(http://math.lbl.gov/voro++/download/dir/${pkgname}-$pkgver.tar.gz) +md5sums=('2338b824c3b7b25590e18e8df5d68af9') + +build() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's/(PREFIX)\/man/(PREFIX)\/share\/man/g' Makefile + sed -i 's/-Wall/-Wall -fPIC/g' config.mk + make all +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make PREFIX=$pkgdir/usr install + install -d $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/$pkgname/{examples,scripts} $pkgdir/usr/share/doc/$pkgname/{,html} + install -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname + install -m644 $srcdir/$pkgname-$pkgver/NEWS $pkgdir/usr/share/doc/$pkgname + install -m644 $srcdir/$pkgname-$pkgver/scripts/* $pkgdir/usr/share/$pkgname/scripts + install -m644 $srcdir/$pkgname-$pkgver/html/* $pkgdir/usr/share/doc/$pkgname/html + cp -r $srcdir/$pkgname-$pkgver/examples/* $pkgdir/usr/share/$pkgname/examples + chmod -R 755 $pkgdir/usr/share/$pkgname/examples +} |