summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxpt2016-02-16 00:15:39 -0300
committerxpt2016-02-16 00:15:39 -0300
commite2910df70aa93bd52384fc3cac4447eb199cd82a (patch)
treee9860186ad47d863ecf5acf37c7e8223ae00c5f3
downloadaur-e2910df70aa93bd52384fc3cac4447eb199cd82a.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ce2b8fb0e40
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Tue Feb 16 03:15:31 UTC 2016
+pkgbase = voro++
+ pkgdesc = A free software library for the computation of three dimensional Voronoi cells.
+ pkgver = 0.4.6
+ pkgrel = 1
+ url = http://math.lbl.gov/voro++/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = perl
+ depends = gcc-libs
+ options = staticlibs
+ source = http://math.lbl.gov/voro++/download/dir/voro++-0.4.6.tar.gz
+ md5sums = 2338b824c3b7b25590e18e8df5d68af9
+
+pkgname = voro++
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6f675eff58
--- /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
+}