summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b964bc2259f2fbcdafebff8f8fdbc7ef168d07d9 (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
# Maintainer: Zen <dev@pyl.onl>
pkgname=python-zenlib-git
pkgver=2.3.2.r0.g09e2cb0
pkgrel=1
pkgdesc="Useful python decorators and utilities"
arch=('x86_64')
url="https://github.com/desultory/zenlib"
license=('GPL2')
conflicts=('python-zenlib')
provides=('python-zenlib')
makedepends=(git python-build python-installer python-wheel python-setuptools)
source=("git+https://github.com/desultory/zenlib")
# https://wiki.gentoo.org/wiki/User:Zen_desu
# gpg  --keyserver 'hkps://keys.openpgp.org' --recv-keys 7751D62F9F9A0454B86871CE64FA651BB8850B48
#validpgpkeys=('7751D62F9F9A0454B86871CE64FA651BB8850B48')
sha256sums=(SKIP) 
_name=${pkgname#python-};
_name=${_name%-git}

pkgver() {
    cd $_name
    git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $_name
    python -m build --wheel --no-isolation
}

package() {
    cd $_name
    python -m installer --destdir="$pkgdir" dist/*.whl
}