[arch-commits] Commit in python-translationstring/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 19:49:42 UTC 2022


    Date: Monday, August 29, 2022 @ 19:49:42
  Author: felixonmars
Revision: 1285734

upgpkg: python-translationstring 1.4-6: fix package version

Modified:
  python-translationstring/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-29 19:49:33 UTC (rev 1285733)
+++ PKGBUILD	2022-08-29 19:49:42 UTC (rev 1285734)
@@ -3,7 +3,7 @@
 
 pkgname=python-translationstring
 pkgver=1.4
-pkgrel=5
+pkgrel=6
 pkgdesc="Utility library for i18n relied on by various Repoze and Pyramid packages"
 arch=('any')
 license=('BSD')
@@ -14,6 +14,13 @@
 source=("https://github.com/Pylons/translationstring/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('f470967e04701f7d5c27acefcd3c058d0b9c600115e2e33212d6855ef0eb932d025b8af0d2017202cf6e1893ef8023edd60453de1c45e495c88846627af200db')
 
+prepare() {
+  cd translationstring-$pkgver
+  # Taken from upstream release workflow:
+  # https://github.com/Pylons/translationstring/blob/1.4/.github/workflows/main.yaml#L47
+  sed -ie "/version/s/=.*/='$pkgver',/" setup.py
+}
+
 build() {
   cd translationstring-$pkgver
   python setup.py build



More information about the arch-commits mailing list