blob: 7e5c3485d30a63bcf8fe6f443f9e981330623232 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: grufo <madmurphy333 AT gmail DOT com>
pkgname='gnunet-webui-git'
_appname='gnunet-webui'
pkgver='r14.da35c82'
pkgrel=1
pkgdesc='Web user interface for GNUnet'
arch=('any')
url="https://gnunet.org"
license=('GPL')
provides=("${_appname}")
conflicts=("${_appname}")
depends=('gnunet' 'nodejs')
makedepends=('npm')
options=('!strip')
source=("git+https://git.gnunet.org/git/${_appname}.git"
"${_appname}.sh"
"${_appname}.service")
md5sums=('SKIP'
'e936e4485fc403707a7f9a8ec003221c'
'7da568705f440c4a3022bf5e18d31349')
install="${_appname}.install"
pkgver() {
cd "${_appname}"
printf "'r%s.%s'" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_appname}"
npm install --user root
}
build() {
cd "${srcdir}/${_appname}"
"${srcdir}/${_appname}/node_modules/.bin/ng" build
# Remove all references to `${srcdir}`
msg 'Removing all references to $srcdir...'
find "${srcdir}/${_appname}" -type f -print0 | xargs -0 sed -i "s|${srcdir}/${_appname}|/usr/share/${_appname}|g"
}
package() {
cd "${srcdir}/${_appname}"
install -dm755 "${pkgdir}/usr/share/${_appname}"
cp -r "${srcdir}/${_appname}/"* "${pkgdir}/usr/share/${_appname}/"
install -Dm755 "${srcdir}/${_appname}.sh" "${pkgdir}/usr/bin/${_appname}"
install -Dm0644 "${srcdir}/${_appname}.service" "${pkgdir}/usr/lib/systemd/system/${_appname}.service"
}
|