summaryrefslogtreecommitdiff
path: root/pcr/pivaders-git
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-23 09:47:31 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-23 09:47:31 +0200
commitf421730e8999908f973a4f08549ce34f1af28e0b (patch)
tree29e0a1372079f85089c450924fecb33909ba67c8 /pcr/pivaders-git
parent873990a4bb46992ea5c7a8553cc6a378f43c37bf (diff)
downloadabslibre-f421730e8999908f973a4f08549ce34f1af28e0b.tar.gz
abslibre-f421730e8999908f973a4f08549ce34f1af28e0b.tar.bz2
abslibre-f421730e8999908f973a4f08549ce34f1af28e0b.zip
pivaders-git Space Invaders game
Diffstat (limited to 'pcr/pivaders-git')
-rw-r--r--pcr/pivaders-git/PKGBUILD28
-rw-r--r--pcr/pivaders-git/pivaders.sh5
2 files changed, 33 insertions, 0 deletions
diff --git a/pcr/pivaders-git/PKGBUILD b/pcr/pivaders-git/PKGBUILD
new file mode 100644
index 000000000..0bee35d23
--- /dev/null
+++ b/pcr/pivaders-git/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor (Arch) : Arthur Zamarin <arthurzam@gmail.com>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+_pkgname=pivaders
+pkgname=pivaders-git
+pkgver=0.2.r1.g5bffd90
+pkgrel=1
+pkgdesc="Space Invaders game"
+arch=('any')
+url="https://github.com/russb78/${_pkgname}"
+license=('GPL2')
+depends=('python' 'python2-pygame')
+conflicts=('pivaders')
+source=("${_pkgname}::git+git://github.com/russb78/${_pkgname}.git"
+ "${_pkgname}.sh")
+sha1sums=('SKIP'
+ '60183ae638d48bc5493eb318e54fb61a6454cfa3')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+package() {
+ install -Dm755 "${srcdir}/${_pkgname}.sh" ${pkgdir}/usr/bin/${_pkgname}
+ mkdir -p ${pkgdir}/usr/share/${_pkgname}
+ cp -r ${srcdir}/${_pkgname}/${_pkgname}/* ${pkgdir}/usr/share/${_pkgname}/
+}
diff --git a/pcr/pivaders-git/pivaders.sh b/pcr/pivaders-git/pivaders.sh
new file mode 100644
index 000000000..bfc009a73
--- /dev/null
+++ b/pcr/pivaders-git/pivaders.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+startDir=$(pwd)
+cd /usr/share/pivaders
+./pivaders.py
+cd $startDir