diff options
author | Albert Berger | 2015-07-11 18:42:37 +0300 |
---|---|---|
committer | Albert Berger | 2015-07-11 19:50:07 +0300 |
commit | 163bb58acee6d0b2c548c45eec31d03b77c4a022 (patch) | |
tree | 2d4d0818a0434769b80a9472285b7f45a2812e49 | |
download | aur-163bb58acee6d0b2c548c45eec31d03b77c4a022.tar.gz |
Added .SRCINFO
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f740d4fcd4e3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = regd-git + pkgdesc = Registry daemon, information cache and secure credential storage. + pkgver = VERSION + pkgrel = 1 + url = https://github.com/nbdsp/regd + arch = any + license = GPL + depends = python>=3.3,git + provides = regd + conflicts = regd + source = regd::git+https://github.com/nbdsp/regd#branch=master + md5sums = SKIP + +pkgname = regd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0180acd7b4c1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Albert Berger < nbdspcl at gmail dot com> +pkgname=regd-git +pkgver=VERSION +pkgrel=1 +pkgdesc="Registry daemon, information cache and secure credential storage." +arch=('any') +url="https://github.com/nbdsp/regd" +license=('GPL') +groups=() +depends=('python>=3.3','git') +optdepends=() +makedepends=() +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=() +options=() +install= +source=("${pkgname%-git}::git+$url#branch=master") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + + printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +package() { + cd "${pkgname%-git}-${pkgver}" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 -o $_username "data/conf.${pkgname}" "$pkgdir/etc/${pkgname}/conf.${pkgname}" + install -Dm644 -o $_username "data/${pkgname}.1" "$pkgdir/usr/share/man/man1/${pkgname}.1" +} |