-
Notifications
You must be signed in to change notification settings - Fork 4
/
PKGBUILD
43 lines (39 loc) · 1.36 KB
/
PKGBUILD
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
# Maintainer: samicrusader ([email protected])
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: librewish <librewish at gmail dot com>
_pkgname=qomui
pkgname=$_pkgname-samicrusader-git
pkgver=0.8.4.r0.8d5267b
pkgrel=1
pkgdesc="Qt OpenVPN Management UI (samicrusader fork)"
arch=('x86_64')
url="https://github.com/samicrusader/qomui"
license=('GPL3')
depends=('python-pyqt5' 'python-dbus' 'openvpn' 'stunnel' 'bind-tools'
'python-psutil' 'python-requests' 'python-lxml' 'python-beautifulsoup4'
'python-pexpect' 'wireguard-tools' 'python-cryptography' 'python-netifaces')
makedepends=('git' 'python-setuptools')
optdepends=('geoip: to identify server locations'
'dnsmasq: required for bypassing OpenVPN'
'libcgroup: required for bypassing OpenVPN'
'iptables: required for bypassing OpenVPN')
provides=("qomui")
conflicts=("qomui" "qomui-git")
source=('git+https://github.com/samicrusader/qomui.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${_pkgname%-git}"
python setup.py build
}
check() {
cd "$srcdir/${_pkgname%-git}"
python setup.py test
}
package() {
cd "$srcdir/${_pkgname%-git}"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}