summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e78ab7b5ca84d84be9040a1ed934bd74a144ec0 (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
# Maintainer: Yann Büchau <nobodyinperson@posteo.de>
pkgname=python-xdgspec-git
pkgver=0.2.1.r3.g45c3cef
pkgrel=3
epoch=
pkgdesc="XDG Base Directory Specification for Python"
arch=(any)
url="https://gitlab.com/nobodyinperson/python3-xdgspec"
license=('GPL')
groups=()
depends=(python)
makedepends=(python-{build,installer,wheel})
checkdepends=()
optdepends=()
provides=("${pkgname%-git}")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+$url")
noextract=()
md5sums=(SKIP)
validpgpkeys=()

pkgver () {
    cd "$srcdir/${pkgname%-git}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build () {
    cd "$srcdir/${pkgname%-git}"
    python -m build --wheel --no-isolation
}

package () {
    cd "$srcdir/${pkgname%-git}"
    export PYTHONHASHSEED=0
    python -m installer --destdir="$pkgdir" dist/*.whl
}