[arch-commits] Commit in (palp palp/trunk palp/trunk/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Dec 20 23:27:20 UTC 2014


    Date: Sunday, December 21, 2014 @ 00:27:20
  Author: arojas
Revision: 124231

Splitting sage-mathematics

Added:
  palp/
  palp/trunk/
  palp/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: palp/trunk/PKGBUILD
===================================================================
--- palp/trunk/PKGBUILD	                        (rev 0)
+++ palp/trunk/PKGBUILD	2014-12-20 23:27:20 UTC (rev 124231)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=palp
+pkgver=2.1
+pkgrel=1
+pkgdesc="A Package for analyzing Lattice Polytopes"
+arch=('i686' 'x86_64')
+url="http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html"
+license=('GPL3')
+depends=('glibc')
+source=("http://hep.itp.tuwien.ac.at/~kreuzer/CY/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('f3791acd2e60846cb63bc98e87ad7509')
+
+build() {
+  cd $pkgname-$pkgver
+  mkdir bin
+  mv Global.h Global.h-template
+  for dim in 4 5 6 11; do
+    sed "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax $dim/" Global.h-template > Global.h
+    make
+    for file in poly class cws nef mori; do
+        mv ${file}.x bin/${file}-${dim}d.x
+    done
+  done
+}
+
+package() {
+  cd $pkgname-$pkgver
+  mkdir -p "$pkgdir"/usr/bin
+  pushd bin
+    for exe in *.x; do
+	install -m 755 $exe "$pkgdir"/usr/bin
+    done
+  popd
+  for file in poly class cws nef mori; do
+    ln -sf ${file}-6d.x "$pkgdir"/usr/bin/${file}.x
+  done
+}
+


Property changes on: palp/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list