blob: bd8102aa9b2ba47131a872b90f88fea9283bba3f (
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
|
# Maintainer: zhiayang <zhiayang@nowhere>
pkgname=wgman
pkgver=0.6.0
pkgrel=1
pkgdesc='Simple WireGuard wrapper-manager-thing'
url='https://github.com/zhiayang/wgman'
depends=('wireguard-tools')
if [ $(uname) = "Linux" ]; then
depends+=('libcap')
fi
makedepends=()
checkdepends=()
license=(Apache)
arch=('any')
_commit='bd519344c30b746aa1c449ce098f89914d0a02de'
source=("git+https://github.com/zhiayang/wgman.git#commit=${_commit}")
sha256sums=('SKIP')
_pacman_root=${pacman_root:-}
build() {
cd wgman
make build PREFIX=${_pacman_root}
}
package() {
cd wgman
install -Dm755 build/wgman "$pkgdir"/${_pacman_root}/usr/bin/wgman
mkdir -p "$pkgdir"/${_pacman_root}/etc/wgman/
if [ $(uname) = "Linux" ]; then
install -Dm755 wgman.target "$pkgdir"/${_pacman_root}/usr/lib/systemd/system/wgman.target
install -Dm755 wgman@.service "$pkgdir"/${_pacman_root}/usr/lib/systemd/system/wgman@.service
fi
}
|