blob: 5226e4f143416be5e2b04ca42ce9f76ebef8dace (
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
|
# Contributor: taotieren <admin@taotieren.com>
pkgname=opengnb-git
pkgver=1.3.0.c.38.g362c481
pkgrel=1
pkgdesc="GNB is open source de-centralized VPN to achieve layer3 network via p2p with the ultimate capability of NAT Traversal."
arch=('x86_64')
url="https://github.com/gnbdev/opengnb"
license=('GPLv3')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
depends=(miniupnpc)
optdepends=()
makedepends=(git sed)
backup=()
options=('!strip')
install=
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --always | sed 's/^v//' | sed 's|-|.|g'
}
prepare() {
cd "${srcdir}/${pkgname%-git}"
sed -i 's|-I./libs/miniupnpc|-I/usr/include/miniupnpc/|g' Makefile.linux
}
build() {
cd "${srcdir}/${pkgname%-git}"
make -f Makefile.linux
}
package() {
cd "${srcdir}/${pkgname%-git}"
make -f Makefile.linux install
install -dm0755 "${pkgdir}/usr" \
"${pkgdir}/usr/lib/systemd/system/" \
"${pkgdir}/usr/share/${pkgname%-git}/"
cp -rv bin "${pkgdir}/usr"
cp -rv scripts/${pkgname%-git}@.service "${pkgdir}/usr/lib/systemd/system/"
cp -rv examples/* "${pkgdir}/usr/share/${pkgname%-git}/"
install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|