blob: 2100d371abf9ce1ad9d0f7e1906a1af9e919fc01 (
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
|
# Maintainer: Iván Zaera Avellón <ivan.zaera@posteo.net>
pkgname=killer-vpn
pkgver=0.2.0
pkgrel=1
pkgdesc='OpenVPN and WireGuard CLI helper'
arch=('pentium4' 'x86_64')
url='https://codeberg.org/ivan.zaera/killer-vpn'
license=('GPL-3.0-or-later')
depends=(
'openvpn'
'systemd'
'ufw'
'wireguard-tools'
)
makedepends=(
'coreutils'
'rust'
'scdoc'
)
backup=(
'etc/kvpn/config.toml'
)
install='install.sh'
source=(
"$pkgname-$pkgver.tar.gz::https://codeberg.org/ivan.zaera/$pkgname/archive/$pkgver.tar.gz"
)
sha256sums=("579779450b9d7ebcf77ca4238f853b0841ab3093bb78311b15d4ccd0d2ba95d8")
build() {
cd $srcdir/$pkgname
# make clean
make MODE=release build
}
check() {
cd $srcdir/$pkgname
make lint
make test
}
package() {
cd $srcdir/$pkgname
cp -arv arch/root/* $pkgdir
mkdir -p $pkgdir/usr/bin
cp -arv rust/target/release/kvpn $pkgdir/usr/bin/kvpn
mkdir -p $pkgdir/usr/share/man/man8
cp -arv man/build/kvpn.8.gz $pkgdir/usr/share/man/man8
mkdir -p $pkgdir/usr/share/bash-completion/completions
cp -arv bash/kvpn-completion.bash $pkgdir/usr/share/bash-completion/completions/kvpn
}
|