diff options
author | xpt | 2015-07-17 23:04:13 -0300 |
---|---|---|
committer | xpt | 2015-07-17 23:04:13 -0300 |
commit | 410ae728d1833b8189bdd8b391c526687991279d (patch) | |
tree | 6b281042fd639e119b565c274ff27e0bc66da01e | |
download | aur-410ae728d1833b8189bdd8b391c526687991279d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e5aaa8dee7c3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = liggghts-lpp + pkgdesc = Open Source Discrete Element Method Particle Simulation Software - Post Processing (Pizza.py) + pkgver = 3.2 + pkgrel = 0 + url = https://github.com/CFDEMproject/LPP + arch = any + license = GPL + depends = liggghts + depends = python2-numpy + +pkgname = liggghts-lpp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2b92100a30bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: xpt <user.xpt@gmail.com> + +pkgname=liggghts-lpp +pkgver=3.2 +pkgrel=0 +pkgdesc="Open Source Discrete Element Method Particle Simulation Software - Post Processing (Pizza.py)" +arch=('any') +url="https://github.com/CFDEMproject/LPP" +license=('GPL') +depends=('liggghts' 'python2-numpy') +_gitroot=" https://github.com/CFDEMproject/LPP.git" +_gitname="LPP" + + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" +} + package() { + mkdir -p $pkgdir/usr/share/liggghts/lpp/{src,scripts} + mkdir -p $pkgdir/usr/bin/ + mkdir -p $pkgdir/usr/share/doc/liggghts/lpp/ + mkdir -p $pkgdir/usr/share/liggghts/examples-lpp/files + cd $srcdir/$_gitname + + install -Dm 755 src/* $pkgdir/usr/share/liggghts/lpp/src + install -Dm 755 scripts/* $pkgdir/usr/share/liggghts/lpp/scripts + install -Dm644 doc/* $pkgdir/usr/share/doc/liggghts/lpp/ + install -Dm644 examples/{*.py,README} $pkgdir/usr/share/liggghts/examples-lpp/ + install -Dm644 examples/files/* $pkgdir/usr/share/liggghts/examples-lpp/files + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/liggghts/lpp/LICENSE" + install -Dm644 "README" "$pkgdir/usr/share/licenses/liggghts/lpp/README" + echo -e '#! /bin/bash\npython2 /usr/share/liggghts/lpp/src/lpp.py $@' > $pkgdir/usr/bin/liggghts-lpp + echo -e '#! /bin/bash\npython2 /usr/share/liggghts/lpp/src/pizza.py $@' > $pkgdir/usr/bin/pizza +} + |