diff options
-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 +} |