diff options
author | Shanti Bouchez-Mongardé | 2015-09-22 23:21:29 +0200 |
---|---|---|
committer | Shanti Bouchez-Mongardé | 2015-09-22 23:23:05 +0200 |
commit | 80c59127968be56df9c1b548b5df41290a521efe (patch) | |
tree | 91b74bcc40a09c03d2b49d4c11c556106796b792 | |
download | aur-80c59127968be56df9c1b548b5df41290a521efe.tar.gz |
python-pylibscrypt
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fd520e526a56 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = python-pylibscrypt-git + pkgver = v1.4.0.r37.g6fd3012 + pkgrel = 1 + arch = any + depends = python + provides = python-pylibscrypt + conflicts = python-pylibscrypt + source = python-pylibscrypt-git::git://github.com/jvarho/pylibscrypt.git + md5sums = SKIP + +pkgname = python-pylibscrypt-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..316a4bbbb2b2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=python-pylibscrypt-git +pkgrel=1 +pkgver=v1.4.0.r37.g6fd3012 +arch=(any) +depends=(python) +source=(python-pylibscrypt-git::git://github.com/jvarho/pylibscrypt.git) +md5sums=(SKIP) +provides=(python-pylibscrypt) +conflicts=(python-pylibscrypt) + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build(){ + cd "$srcdir/$pkgname" + python setup.py build +} + +package(){ + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 +} |