summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichele2015-06-08 19:31:25 +0200
committerMichele2015-06-08 19:31:25 +0200
commit63ebf5da74d491673103fbf18d1ea9d6f93fa77f (patch)
tree533e18c5399b79d3e523d4a2774518f2ea392595 /PKGBUILD
downloadaur-twik-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..66aa23f40f4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Michele Bovo <mbovo@gmx.com>
+
+pkgname='twik-git'
+pkgver=r42.d3403e7
+pkgrel=1
+pkgdesc="A commandline hash-based password generator"
+url="http://gustavomondron.github.io/twik/"
+arch=('any')
+license=('GPL')
+depends=('python2')
+makedepends=('git' 'python2-setuptools')
+source=('git+https://github.com/coxande/Twik')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd Twik
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare () {
+ cd Twik/twik
+ sed -i 's#usr/bin/python#usr/bin/python2#' twik.py
+ sed -i 's#usr/bin/python#usr/bin/python2#' run.py
+ sed -i 's#usr/bin/python#usr/bin/python2#' util.py
+
+}
+
+package() {
+ cd Twik
+ python2 setup.py install --optimize=1 --root="$pkgdir/"
+}