summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRafael Fontenelle2018-10-10 11:08:15 -0300
committerRafael Fontenelle2018-10-10 11:08:15 -0300
commitd9c8ebcf7c4a2846472bedb3847bdf655f919b2d (patch)
tree991da33dce20e6a71ffba41a6f33ae8611a62e42 /PKGBUILD
parent09e8b71f8d50a6096aba30551256ad4d80cb689c (diff)
downloadaur-python2-translate-toolkit-lib.tar.gz
Update to 2.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a3554956d83..434566a2f07 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=python2-translate-toolkit-lib
_name=translate-toolkit
-pkgver=2.3.0
-pkgrel=2
+pkgver=2.3.1
+pkgrel=1
pkgdesc="A toolkit to convert between various different translation formats, help process and validate localisations"
arch=('any')
url="http://toolkit.translatehouse.org/"
@@ -11,23 +11,23 @@ license=('GPL')
depends=('bash' 'python2-lxml' 'python2-six' 'python2-diff-match-patch')
makedepends=('python2-setuptools')
optdepends=('gaupol: for po2sub')
-source=("https://github.com/translate/translate/releases/download/$pkgver/$_name-${pkgver}.tar.gz")
-sha256sums=('763325a419fdf2d5429e24bad42f33bccca7eb58279f57ddd742c4c3ea794ccb')
+source=($_name-$pkgver.tar.gz::https://github.com/translate/translate/archive/$pkgver.tar.gz)
+sha256sums=('0b2d79f0023ce545c6240829624ce1e1ce54ea7bc7913428880345ff423fd999')
prepare() {
- cd $_name-$pkgver
+ cd translate-$pkgver
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find . -name '*.py')
}
build() {
- cd $_name-$pkgver
+ cd translate-$pkgver
python2 -s setup.py build
}
package() {
- cd $_name-$pkgver
+ cd translate-$pkgver
python2 -s setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
python2 -m compileall "$pkgdir/usr/lib/python2.7/site-packages/translate"