summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cef88e94fef880ae5ec20cc3931479575a5020bf (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# Arch Linux PKGBUILD for wg_tool 
# This builds the latest release tag.
# git HEAD is also well tested.
#
# Maintainer: Gene C <arch@sapience.com>
# Contributor: 
# 
pkgname='wg_tool'
pkgdesc='Wireguard VPN administration tool'
_gitname='wg_tool'

pkgver="10.5.2"
pkgrel=1
url="https://github.com/gene-git/wg_tool"

arch=(any)
license=('GPL-2.0-or-later')
depends=(
    'python>=3.14' 
    python-cryptography
    py-cidr
    python-qrcode
    wireguard-tools
    nftables
    python-pyconcurrent
    python-yaml
    python-dnspython
    python-tomli-w
    bash
)

optdepends=(
    'wg-client: For post-up.sh, post-dn.sh and resolv-manager'
    'python-argcomplete: For command line option completion'
)

makedepends=(
    git
    meson
    meson-python
    rsync
)

checkdepends() {
    python-pytest
    python-pytest-asyncio
}

_mkpkg_depends=(
    'python>minor'
    'wireguard-tools>minor'
    'python-cryptography>minor'
    'nftables>minor'
    'py-cidr>minor'
)

#
# Verifying Signed Tag
#   Add arch@sapience.com key to keyring then use the source line with "?signed"
#   Key available via keys/pgp, WKD or dowload from https://www.sapience.com/tech
#   Note that upstream release procedure requires every tagged release have new tag
#
validpgpkeys=( '7CCA1BA66669F3273DB52678E5B81343AB9809E1')   # Gene C

#source=("git+https://github.com/gene-git/${_gitname}#tag=${pkgver}?signed")
source=(
    "git+https://github.com/gene-git/${_gitname}#tag=${pkgver}"
    wg_tool.tmpfiles
)
sha256sums=(
    'SKIP'
    'f05717b55bffbb1a07553c8daddfcfda7749e3508100a96ba1d04793b77f756c'
)

changelog="Changelog.rst"

build() {
    cd "${_gitname}"
    ./scripts/do-build
}

check() {
    cd "${_gitname}"
    ./scripts/run-tests
}

package() {
    cd "${_gitname}"
    ./scripts/do-install ${pkgdir}

    install -Dm644 ../wg_tool.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/wg_tool.conf

}