summaryrefslogtreecommitdiff
path: root/python-jira/PKGBUILD
blob: 6a260b2ee500d5efde7ff42f729ee1d90d84f4af (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
# Maintainer: Erich Eckner <arch at eckner dot net>
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
}