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

_pkgname=windscribe
pkgname="python-${_pkgname}-git"
pkgver=r10.8dbf882
pkgrel=1
pkgdesc="A python wrapper library for Windscribe CLI"
arch=("any")
url="https://github.com/shaybox/${_pkgname}"
license=("MIT")
depends=(
    "python"
    "python-pexpect"
)
makedepends=(
    "python-poetry"
)
provides=("${_pkgname}" "python-${_pkgname}")
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}"
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
}