summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2021-04-27 12:41:15 -0300
committerRafael Fontenelle2021-04-27 12:41:18 -0300
commitc6563719453f0b12860629f044af507c65df9037 (patch)
tree932167546f5895b91fe8fcadefe4036093ca4431
parent10df280e43df17d9bed54cbe75b77dfe9705791d (diff)
downloadaur-c6563719453f0b12860629f044af507c65df9037.tar.gz
Several improvements
- Change Python version to 3 - Split build and package functions
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD23
2 files changed, 13 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 139ae8f54c3..75976a163f5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,12 @@
-# Generated by mksrcinfo v8
-# Sun Sep 4 21:40:49 UTC 2016
pkgbase = pyg3t-git
pkgdesc = Python GetText Translation Toolkit
- pkgver = 0.5.1.r305.2099281
+ pkgver = 0.5.1.r328.417e7a8
pkgrel = 1
url = https://github.com/pyg3t/pyg3t
arch = any
- license = GPL
+ license = GPL3
makedepends = git
- depends = python2-dateutil
+ depends = python-dateutil
provides = pyg3t
conflicts = pyg3t
source = git+https://github.com/pyg3t/pyg3t.git
diff --git a/PKGBUILD b/PKGBUILD
index d7f93567919..14f74476998 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
_name=pyg3t
pkgname=$_name-git
-pkgver=0.5.1.r305.2099281
+pkgver=0.5.1.r328.417e7a8
pkgrel=1
pkgdesc="Python GetText Translation Toolkit"
arch=(any)
url="https://github.com/pyg3t/pyg3t"
-license=('GPL')
-depends=('python2-dateutil')
+license=('GPL3')
+depends=('python-dateutil')
makedepends=('git')
provides=($_name)
conflicts=($_name)
@@ -17,21 +17,18 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_name"
-
- v="$(grep version pyg3t/__init__.py | cut -d\' -f2)"
+ v=$(python -c 'from pyg3t import __version__; print(__version__)')
r="$(git rev-list --count HEAD)"
h="$(git rev-parse --short HEAD)"
printf "$v.r$r.$h"
}
-package() {
+build() {
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
+ python setup.py build
}
+package() {
+ cd "$srcdir/$_name"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}