diff options
author | Zen | 2024-11-09 11:56:49 -0600 |
---|---|---|
committer | Zen | 2024-11-09 11:56:49 -0600 |
commit | 7a7b2cabd2f4fbb6879d6a0c07c7a9127cd36394 (patch) | |
tree | c44322b22e1207988f8170aea5d641733833e836 /PKGBUILD | |
download | aur-python-pycpio-git.tar.gz |
init
Signed-off-by: Zen <z@pyl.onl>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a08193e7154c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |