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

Andrea Scarpino andrea at archlinux.org
Thu Dec 16 18:09:33 UTC 2010


    Date: Thursday, December 16, 2010 @ 13:09:33
  Author: andrea
Revision: 103240

upgpkg: translate-toolkit 1.8.1-1
upstream release

Modified:
  translate-toolkit/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-12-16 17:32:33 UTC (rev 103239)
+++ PKGBUILD	2010-12-16 18:09:33 UTC (rev 103240)
@@ -4,20 +4,22 @@
 # Contributor: Hugo Doria <hugodoria at gmail.com>
 
 pkgname=translate-toolkit
-pkgver=1.8.0
-pkgrel=2
+pkgver=1.8.1
+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"
 license=('GPL')
 depends=('bash' 'python-lxml')
 source=("http://downloads.sourceforge.net/translate/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('6acc870d677d6312625e3e002d483b58')
+md5sums=('b4cae0700aa1c2aef7eb7f345365e6f1')
 
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $(find . -name '*.py')
+
   python2 setup.py install --root="${pkgdir}"
-
-  # fix python 2.7 path
-  find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
 }




More information about the arch-commits mailing list