# Maintainer: Erich Eckner pkgname=python-jira _pkgname="${pkgname#*-}" pkgver=3.9.4 pkgrel=1 pkgdesc="Python library to work with Jira APIs" arch=(any) url="https://github.com/pycontribs/jira" license=('BSD') depends=( 'python>=3.12' 'python<3.13') makedepends=( 'python-setuptools') source=("$_pkgname-$pkgver.tar.gz::https://github.com/pycontribs/jira/archive/refs/tags/$pkgver.tar.gz" setup.py) sha512sums=('e3a9f228376045d39609b61b5a3197e97b3b80cd64b010aef12bb2c7b8f6c009201e63bb5e28b5a958e8336e6994c2b75979c4756d9cb73b609e91e79452e211' '373dacad848dfd8a23d84bf329f9f2090689789361adcbf6f0fbe11ef7c5d7599039805f2f7b6c52d07e1f4b7980150f3e015fa9b0392b7c7318b1068976bc9e') prepare() { cd "${srcdir}/jira-${pkgver}" sed ' s@\(setuptools.setup(\)use_scm_version=True)@\1version='"'${pkgver}'"')@ ' ../setup.py > setup.py } package() { cd "${srcdir}/jira-${pkgver}" python setup.py install --root="$pkgdir" --optimize=1 install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }