summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcf933e3da49f5ae1343855409fe6ef6fa56f11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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}"

	git describe
}

package() {
	cd "${pkgname%-git}"
	pname="${pkgname%-git}"
	_username="$(id | sed -e 's/[^(]*(\([^)]*\)).*/\1/')"
	python setup.py install --root="$pkgdir/" --optimize=1
	install -Dm644 -o $_username "data/conf.${pname}" "$pkgdir/etc/${pname}/conf.${pname}"
	install -Dm644 -o $_username "data/${pname}.1" "$pkgdir/usr/share/man/man1/${pname}.1"
}