* update python-autocommand to 2.2.2-6

This commit is contained in:
Alexander Baldeck 2024-05-07 14:29:22 +02:00
parent 9658406f11
commit 06c7e73c18

View File

@ -3,20 +3,27 @@
pkgname=python-autocommand
pkgver=2.2.2
pkgrel=4
pkgrel=6
pkgdesc="A library to create a command-line program from a function"
url="https://github.com/Lucretiel/autocommand"
license=('LGPL')
arch=(any)
depends=('python')
makedepends=('python-setuptools')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://github.com/Lucretiel/autocommand/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('5ed109db16a0e309ed5107b26db0b70ed8669d73817e82eb5a219650d29f53785aa1f9471b2ac71d21dbffc9f0a13ea0fdf69e63ab534fd84407a1d6741cf5b5')
source=("https://github.com/Lucretiel/autocommand/archive/$pkgver/$pkgname-$pkgver.tar.gz"
https://github.com/jaraco/autocommand/commit/ec6f6641.patch)
sha512sums=('5ed109db16a0e309ed5107b26db0b70ed8669d73817e82eb5a219650d29f53785aa1f9471b2ac71d21dbffc9f0a13ea0fdf69e63ab534fd84407a1d6741cf5b5'
'2a31e24bafeab219b9ba836c34efa08664ddc323592cbff6cf7853631c982ebac2f263077999cd8c7aa05a2e588f64c8a1bcc4819436b8aba7068b1a26f21019')
prepare() {
cd autocommand-$pkgver
patch -p1 -i ../ec6f6641.patch # Fix build
}
build() {
cd autocommand-$pkgver
python setup.py build
python -m build --wheel --no-isolation
}
check() {
@ -26,5 +33,5 @@ check() {
package() {
cd autocommand-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
}