Date: Sunday, December 21, 2014 @ 00:28:02 Author: arojas Revision: 124232
archrelease: copy trunk to community-i686, community-x86_64 Added: palp/repos/ palp/repos/community-i686/ palp/repos/community-i686/PKGBUILD (from rev 124231, palp/trunk/PKGBUILD) palp/repos/community-x86_64/ palp/repos/community-x86_64/PKGBUILD (from rev 124231, palp/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Copied: palp/repos/community-i686/PKGBUILD (from rev 124231, palp/trunk/PKGBUILD) =================================================================== --- repos/community-i686/PKGBUILD (rev 0) +++ repos/community-i686/PKGBUILD 2014-12-20 23:28:02 UTC (rev 124232) @@ -0,0 +1,39 @@ +# Maintainer: Antonio Rojas <aro...@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 +} + Copied: palp/repos/community-x86_64/PKGBUILD (from rev 124231, palp/trunk/PKGBUILD) =================================================================== --- repos/community-x86_64/PKGBUILD (rev 0) +++ repos/community-x86_64/PKGBUILD 2014-12-20 23:28:02 UTC (rev 124232) @@ -0,0 +1,39 @@ +# Maintainer: Antonio Rojas <aro...@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 +} +