summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cffe5e6dc558237bd0669a200726cd88dfdff02 (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
# Maintainer: Shayne Hartford <shayneehartford@gmail.com>

_pkgname=windscribegui
pkgname="${_pkgname}-git"
pkgver=r3.ec1bccb
pkgrel=2
pkgdesc="Qt 5/6 based GUI for Windscribe VPN written in Python"
arch=("any")
url="https://github.com/shaybox/${_pkgname}"
license=("MIT")
depends=(
    "windscribe-cli"
    "python-qtpy"
    "python-windscribe"
    "python-click"
)
makedepends=(
    "git"
    "python-pip"
    "python-poetry"
)
optdepends=(
    "python-pyqt5: Qt5"
    "python-pyqt6: Qt6"
)
source=(
    "git+${url}.git"
)
sha512sums=(
    "SKIP"
)

pkgver() {
    cd "${srcdir}/${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}"
    poetry build --format wheel
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm644 "data/share/applications/windscribe.desktop" "${pkgdir}/usr/share/applications/windscribe.desktop"
    install -Dm644 "data/share/icons/hicolor/256x256/apps/windscribe.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/windscribe.png"
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
}