blob: a08193e7154c5c8bea3097d2f980bbe6258ed33e (
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
|
# Maintainer: Zen <dev@pyl.onl>
pkgname=python-pycpio-git
pkgver=1.2.1.r41.ge5ef08a
pkgrel=1
pkgdesc="Python CPIO library"
arch=('x86_64')
url="https://github.com/desultory/pycpio"
license=('GPL2')
makedepends=(git python-build python-installer python-wheel python-setuptools)
depends=(python-zenlib-git)
provides=(python-pycpio)
conflicts=(python-pycpio)
source=("git+https://github.com/desultory/pycpio")
# 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
}
|