diff options
author | Techcable | 2022-05-07 12:10:48 -0700 |
---|---|---|
committer | Techcable | 2022-05-07 12:11:30 -0700 |
commit | ff614873a3a673c0329b6e4f11a9b0c0db0d5e70 (patch) | |
tree | 501ea3513734c0b96ed7efacc6020b22e9c045ed | |
parent | 9660f33a93c06c359b0ed0a43dfe6c8544e7eaaf (diff) | |
download | aur-ff614873a3a673c0329b6e4f11a9b0c0db0d5e70.tar.gz |
Update to 0.3.11
Requires work because incorrectly tagged on github as 3.11 (no leading
0).
I work around this with a "fake_pkgver" variable
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 15 insertions, 11 deletions
@@ -1,5 +1,6 @@ pkgbase = python-columnize - pkgver = 0.3.10 + pkgdesc = Python module to align a simple (not nested) list in columns. + pkgver = 0.3.11 pkgrel = 1 url = https://github.com/rocky/pycolumnize arch = any @@ -8,8 +9,7 @@ pkgbase = python-columnize checkdepends = python-pytest checkdepends = python-pytest-cov makedepends = python-setuptools - source = columnize-0.3.0.tar.gz::https://github.com/rocky/pycolumnize/archive/refs/tags/0.3.10.tar.gz - sha256sums = c7947a57a126b6e5b4b585a19945909c3e64213979113948968304ebcf23daa4 + source = columnize-0.3.11.tar.gz::https://github.com/rocky/pycolumnize/archive/refs/tags/3.11.tar.gz + sha256sums = dbcb3fc33f93da7d34542e7cd649f513cbe3cae7ad23f797c97499fc4ccba91e pkgname = python-columnize - @@ -1,6 +1,6 @@ # Maintainer: Techcable <Techcable at techcable dot net> pkgname=python-columnize -pkgver=0.3.10 +pkgver=0.3.11 pkgrel=1 epoch= pkgdesc="Python module to align a simple (not nested) list in columns." @@ -15,24 +15,28 @@ backup=() # Anything we need to backup? options=() install= changelog= -source=("columnize-${pkgver}.tar.gz::https://github.com/rocky/pycolumnize/archive/refs/tags/${pkgver}.tar.gz") -sha256sums=("c7947a57a126b6e5b4b585a19945909c3e64213979113948968304ebcf23daa4") +# NOTE: Unfortunately 0.3.11 was released with an incorrect tag as 3.11 +# +# TODO: Fix this once (or if) upstream fixes it +wrong_pkgver=3.11 +source=("columnize-${pkgver}.tar.gz::https://github.com/rocky/pycolumnize/archive/refs/tags/${wrong_pkgver}.tar.gz") +sha256sums=('dbcb3fc33f93da7d34542e7cd649f513cbe3cae7ad23f797c97499fc4ccba91e') prepare() { true; # Nothing to do I guess } build() { - cd "pycolumnize-$pkgver" + cd "pycolumnize-$wrong_pkgver" python3 ./setup.py build; } check() { - cd "pycolumnize-$pkgver" - make check; + cd "pycolumnize-$wrong_pkgver" + PYTHONPATH="." pytest test; } package() { - cd "pycolumnize-$pkgver" + cd "pycolumnize-$wrong_pkgver" python setup.py install --root="$pkgdir/" --prefix="/usr" } |