Date: Monday, November 28, 2016 @ 21:00:59 Author: felixonmars Revision: 282196
archrelease: copy trunk to staging-i686, staging-x86_64 Added: lokalize/repos/staging-i686/ lokalize/repos/staging-i686/PKGBUILD (from rev 282195, lokalize/trunk/PKGBUILD) lokalize/repos/staging-i686/fix-python2-path.patch (from rev 282195, lokalize/trunk/fix-python2-path.patch) lokalize/repos/staging-x86_64/ lokalize/repos/staging-x86_64/PKGBUILD (from rev 282195, lokalize/trunk/PKGBUILD) lokalize/repos/staging-x86_64/fix-python2-path.patch (from rev 282195, lokalize/trunk/fix-python2-path.patch) ---------------------------------------+ staging-i686/PKGBUILD | 40 ++++++++++++++++++++++++++++++++ staging-i686/fix-python2-path.patch | 22 +++++++++++++++++ staging-x86_64/PKGBUILD | 40 ++++++++++++++++++++++++++++++++ staging-x86_64/fix-python2-path.patch | 22 +++++++++++++++++ 4 files changed, 124 insertions(+) Copied: lokalize/repos/staging-i686/PKGBUILD (from rev 282195, lokalize/trunk/PKGBUILD) =================================================================== --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2016-11-28 21:00:59 UTC (rev 282196) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=lokalize +pkgver=16.08.3 +pkgrel=2 +pkgdesc='Computer-Aided Translation System' +url='http://kde.org/applications/development/lokalize/' +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde-applications' 'kdesdk') +depends=('kross' 'hunspell' 'hicolor-icon-theme') +makedepends=('extra-cmake-modules' 'python' 'kdoctools') +conflicts=('kdesdk-lokalize') +replaces=('kdesdk-lokalize') +source=("http://download.kde.org/stable/applications/${pkgver}/src/lokalize-${pkgver}.tar.xz") +sha1sums=('3ebc80e5d0ca0f03ce0c2487361fa80be39d20cb') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../lokalize-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + make DESTDIR=$pkgdir install + + # Fix python 2 path + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + "${pkgdir}"/usr/share/lokalize/scripts/odf/xliffmerge.py +} Copied: lokalize/repos/staging-i686/fix-python2-path.patch (from rev 282195, lokalize/trunk/fix-python2-path.patch) =================================================================== --- staging-i686/fix-python2-path.patch (rev 0) +++ staging-i686/fix-python2-path.patch 2016-11-28 21:00:59 UTC (rev 282196) @@ -0,0 +1,22 @@ +--- kdesdk-4.5.80/lokalize/scripts/msgmerge.py~ 2010-11-24 11:22:42.120000002 +0100 ++++ kdesdk-4.5.80/lokalize/scripts/msgmerge.py 2010-11-24 11:22:42.146666670 +0100 +@@ -114,7 +114,7 @@ + print >>sys.stderr, "Execution failed:", e + + cmd='%s/odf/xliffmerge.py -i %s -t %s -o %s' % (ourPath,xliffpathname,xlifftemplatepathname,xliffpathname) +- if os.name!='nt': cmd='python '+cmd ++ if os.name!='nt': cmd='python2 '+cmd + else: cmd=cmd.replace('/','\\') + os.system(cmd) + +--- kdesdk-4.5.80/lokalize/scripts/xliff2odf.py~ 2010-11-24 11:24:10.853333336 +0100 ++++ kdesdk-4.5.80/lokalize/scripts/xliff2odf.py 2010-11-24 11:24:10.883333336 +0100 +@@ -42,7 +42,7 @@ + xliff2odf.convertxliff(xliffinput, translatedodfpathname, odf) + + ourpath=([p for p in sys.path if os.path.exists(p+'/xliff2odf.py')]+[''])[0] +- os.system('python "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId())) ++ os.system('python2 "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId())) + + try: convert() + except: print 'error occured' Copied: lokalize/repos/staging-x86_64/PKGBUILD (from rev 282195, lokalize/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2016-11-28 21:00:59 UTC (rev 282196) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=lokalize +pkgver=16.08.3 +pkgrel=2 +pkgdesc='Computer-Aided Translation System' +url='http://kde.org/applications/development/lokalize/' +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde-applications' 'kdesdk') +depends=('kross' 'hunspell' 'hicolor-icon-theme') +makedepends=('extra-cmake-modules' 'python' 'kdoctools') +conflicts=('kdesdk-lokalize') +replaces=('kdesdk-lokalize') +source=("http://download.kde.org/stable/applications/${pkgver}/src/lokalize-${pkgver}.tar.xz") +sha1sums=('3ebc80e5d0ca0f03ce0c2487361fa80be39d20cb') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../lokalize-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + make DESTDIR=$pkgdir install + + # Fix python 2 path + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + "${pkgdir}"/usr/share/lokalize/scripts/odf/xliffmerge.py +} Copied: lokalize/repos/staging-x86_64/fix-python2-path.patch (from rev 282195, lokalize/trunk/fix-python2-path.patch) =================================================================== --- staging-x86_64/fix-python2-path.patch (rev 0) +++ staging-x86_64/fix-python2-path.patch 2016-11-28 21:00:59 UTC (rev 282196) @@ -0,0 +1,22 @@ +--- kdesdk-4.5.80/lokalize/scripts/msgmerge.py~ 2010-11-24 11:22:42.120000002 +0100 ++++ kdesdk-4.5.80/lokalize/scripts/msgmerge.py 2010-11-24 11:22:42.146666670 +0100 +@@ -114,7 +114,7 @@ + print >>sys.stderr, "Execution failed:", e + + cmd='%s/odf/xliffmerge.py -i %s -t %s -o %s' % (ourPath,xliffpathname,xlifftemplatepathname,xliffpathname) +- if os.name!='nt': cmd='python '+cmd ++ if os.name!='nt': cmd='python2 '+cmd + else: cmd=cmd.replace('/','\\') + os.system(cmd) + +--- kdesdk-4.5.80/lokalize/scripts/xliff2odf.py~ 2010-11-24 11:24:10.853333336 +0100 ++++ kdesdk-4.5.80/lokalize/scripts/xliff2odf.py 2010-11-24 11:24:10.883333336 +0100 +@@ -42,7 +42,7 @@ + xliff2odf.convertxliff(xliffinput, translatedodfpathname, odf) + + ourpath=([p for p in sys.path if os.path.exists(p+'/xliff2odf.py')]+[''])[0] +- os.system('python "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId())) ++ os.system('python2 "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId())) + + try: convert() + except: print 'error occured'