blob: f5f309dd0ab2e7f0d875af7928d8790a313fda49 (
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
37
38
39
40
41
42
43
44
45
|
# 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"
"git://github.com/nbdsp/appsm.git"
"git://github.com/nbdsp/dtlsm.git")
noextract=()
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${pkgname%-git}"
s=$(git describe)
echo ${s%%\-*}
}
package() {
cd "${pkgname%-git}"
pname="${pkgname%-git}"
_username="$(id | sed -e 's/[^(]*(\([^)]*\)).*/\1/')"
git submodule init
git config submodule.appsm.url $srcdir/regd/appsm
git config submodule.dtlsm.url $srcdir/regd/dtlsm
git submodule update
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}.conf" "$pkgdir/usr/lib/tmpfiles.d/${pname}.conf"
install -Dm644 -o $_username "data/${pname}.1" "$pkgdir/usr/share/man/man1/${pname}.1"
}
|