summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2016-09-04 18:26:58 -0300
committerRafael Fontenelle2016-09-04 18:26:58 -0300
commit3d30b798cc67dfbd79c484c0f1c301bde57773b9 (patch)
treee2b939e82e07d7e9bb02418f6e872ee881da501d
parent9f7bce2ddc544b4ee412b62a1740e10296d87010 (diff)
downloadaur-3d30b798cc67dfbd79c484c0f1c301bde57773b9.tar.gz
Update to 0.5.0
First release on github
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD19
2 files changed, 17 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2d85df8466d..00df7c28223 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
+# Generated by mksrcinfo v8
+# Sun Sep 4 21:02:03 UTC 2016
pkgbase = pyg3t
pkgdesc = Python gettext Translation Toolkit
- pkgver = 0.3.1
+ pkgver = 0.5.0
pkgrel = 1
- url = https://launchpad.net/pyg3t
+ url = https://github.com/pyg3t/pyg3t
arch = any
license = GPL
depends = python2
- source = https://launchpad.net/pyg3t/trunk/0.3.1/+download/pyg3t-0.3.1.tar.gz
- md5sums = a05172b2988fd8a6ff1203c490b5217f
+ source = pyg3t-0.5.0.tar.gz::https://github.com/pyg3t/pyg3t/archive/0.5.0.tar.gz
+ md5sums = 89b67b54a08a7bd465d9ed69fd11dcb2
pkgname = pyg3t
diff --git a/PKGBUILD b/PKGBUILD
index 8faf2a80ade..74f3eac31ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,24 @@
-# Maintainer: josephgbr <rafael.f.f1@gmail.com>
+# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
+
pkgname=pyg3t
-pkgver=0.3.1
+pkgver=0.5.0
pkgrel=1
pkgdesc="Python gettext Translation Toolkit"
arch=(any)
-url="https://launchpad.net/pyg3t"
+url="https://github.com/pyg3t/pyg3t"
license=('GPL')
depends=('python2')
-source=($url/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
-md5sums=('a05172b2988fd8a6ff1203c490b5217f')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+md5sums=('89b67b54a08a7bd465d9ed69fd11dcb2')
package() {
cd "$srcdir/$pkgname-$pkgver"
- sed -i "s#!/usr/bin/env python#&2#" \
- pyg3t/poabc.py pyg3t/podiff.py pyg3t/gtxml.py \
- pyg3t/gtgrep.py pyg3t/gtparse.py pyg3t/popatch.py
+ # fix python2 calls
+ PYTHON_CALLERS="$(grep -R 'python$' --exclude-dir=build | cut -d: -f1)"
+ sed -i -e 's|env python$|env python2|' \
+ -e 's|bin/python$|bin/python2|' \
+ ${PYTHON_CALLERS}
python2 setup.py install --root="$pkgdir/" --optimize=1
}