summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2016-09-04 18:41:14 -0300
committerRafael Fontenelle2016-09-04 18:41:14 -0300
commit10df280e43df17d9bed54cbe75b77dfe9705791d (patch)
treed17d8f713033e9f9f6d029ed28759dd37b07a300
parent8f93833954278bf7353fae9eb2a012753ed85ed2 (diff)
downloadaur-10df280e43df17d9bed54cbe75b77dfe9705791d.tar.gz
Update to 0.5.1
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD28
2 files changed, 20 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ff1b3515587..139ae8f54c3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
# Generated by mksrcinfo v8
-# Wed Jul 20 02:33:26 UTC 2016
+# Sun Sep 4 21:40:49 UTC 2016
pkgbase = pyg3t-git
- pkgdesc = Python GetText Translation Toolkit (git)
- pkgver = 0.4.0.r205.196b47d
+ pkgdesc = Python GetText Translation Toolkit
+ pkgver = 0.5.1.r305.2099281
pkgrel = 1
url = https://github.com/pyg3t/pyg3t
arch = any
- license = GPL3
+ license = GPL
makedepends = git
depends = python2-dateutil
provides = pyg3t
diff --git a/PKGBUILD b/PKGBUILD
index 3d5aea0bdde..d7f93567919 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
-# Maintainer: rafaelff <rafaelff@gnome.org>
+# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
_name=pyg3t
pkgname=$_name-git
-pkgver=0.4.0.r205.196b47d
+pkgver=0.5.1.r305.2099281
pkgrel=1
-pkgdesc="Python GetText Translation Toolkit (git)"
+pkgdesc="Python GetText Translation Toolkit"
arch=(any)
url="https://github.com/pyg3t/pyg3t"
-license=('GPL3')
+license=('GPL')
depends=('python2-dateutil')
makedepends=('git')
provides=($_name)
@@ -16,18 +16,22 @@ source=(git+${url}.git)
md5sums=('SKIP')
pkgver() {
- cd pyg3t
- v=`grep version pyg3t/__init__.py | cut -d\' -f2`
- printf "%s.r%s.%s" "$v" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/$_name"
+
+ v="$(grep version pyg3t/__init__.py | cut -d\' -f2)"
+ r="$(git rev-list --count HEAD)"
+ h="$(git rev-parse --short HEAD)"
+ printf "$v.r$r.$h"
}
package() {
- cd pyg3t
- #exit 1
- sed -i "s#!/usr/bin/env python#&2#" \
- pyg3t/gtgrep.py pyg3t/gtparse.py pyg3t/gtxml.py \
- pyg3t/poabc.py pyg3t/podiff.py pyg3t/popatch.py
+ cd "$srcdir/$_name"
+ # 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
}