[arch-commits] Commit in translate-toolkit/trunk (PKGBUILD)

Lukas Fleischer lfleischer at archlinux.org
Sun Feb 12 12:24:50 UTC 2017


    Date: Sunday, February 12, 2017 @ 12:24:50
  Author: lfleischer
Revision: 288734

upgpkg: translate-toolkit 2.0.0-1

Upstream update.

Modified:
  translate-toolkit/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-12 12:20:09 UTC (rev 288733)
+++ PKGBUILD	2017-02-12 12:24:50 UTC (rev 288734)
@@ -4,27 +4,22 @@
 # Contributor: Hugo Doria <hugodoria at gmail.com>
 
 pkgname=translate-toolkit
-pkgver=1.13.0
-pkgrel=2
+pkgver=2.0.0
+pkgrel=1
 pkgdesc="A toolkit to convert between various different translation formats, help process and validate localisations"
 arch=('any')
-url="http://translate.sourceforge.net/wiki/toolkit/index"
+url="http://toolkit.translatehouse.org/"
 license=('GPL')
-depends=('bash' 'python2-lxml' 'python2-six')
-makedepends=('python2-setuptools')
-optdepends=('python2-iniparse: for ini2po'
+depends=('bash' 'python-lxml' 'python-six')
+makedepends=('python-setuptools')
+optdepends=('python-iniparse: for ini2po'
             'gaupol: for po2sub')
 source=("https://github.com/translate/translate/releases/download/$pkgver/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('f9997a0deb3f1767bb20665a47cd2708')
+md5sums=('682ec8d83e0ae747c6e0934e12a9e088')
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd "${pkgname}-${pkgver}"
 
-  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-    -e "s|/usr/bin/python2.4|/usr/bin/python2|" \
-    $(find . -name '*.py')
-
-  python2 -s setup.py install --root="${pkgdir}" --optimize=1
-  python2 -m compileall "${pkgdir}"/usr/lib/python2.7/site-packages/translate
+  python -s setup.py install --root="${pkgdir}" --optimize=1
+  python -m compileall "${pkgdir}"/usr/lib/python3.6/site-packages/translate
 }



More information about the arch-commits mailing list