blob: c6a3fe9a7f3e4afcb54fe44186a4b7092aad706c (
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
|
#
# PKGBUILD for mkpkg
# This builds the latest release tag.
# git HEAD is well also well tested before any repo change.
#
# Maintainer: Gene C <arch@sapience.com>
# Contributor:
#
pkgname='wg_tool'
pkgdesc='Tool to manage wireguard server and users'
_gitname='wg_tool'
pkgver=1.2.3
pkgrel=1
url="https://github.com/gene-git/wg_tool"
arch=(any)
license=(MIT)
depends=('python>3.9' 'python-packaging' 'python-netaddr'
'python-tomli' 'python-tomli-w' 'python-qrcode' 'wireguard-tools')
makedepends=('git' 'python-pip' 'python-poetry' 'rsync')
_mkpkg_depends=('python>minor')
source=("git+https://github.com/gene-git/${_gitname}")
sha512sums=('SKIP')
pkgver() {
cd "${_gitname}"
git describe --tags --abbrev=0
}
build() {
cd "${_gitname}"
/usr/bin/rm -f dist/*
poetry build
}
package() {
cd "${_gitname}"
./scripts/do-install ${pkgdir}
}
# vim:set ts=4 sts=4 sw=4 et:
|