summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2017-11-22 22:22:55 +0100
committerhaawda2017-11-22 22:22:55 +0100
commitf0f396758c2a171a800268db7b770c0d5c0c689e (patch)
tree942380512c3e5813b0704564dea8cb533b4c71f4
parentb8f665d9dadb8c44b710f47b7a0f5327087a437c (diff)
downloadaur-f0f396758c2a171a800268db7b770c0d5c0c689e.tar.gz
fix python stuff
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 7 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fc2f9dd66bd..08335ebd123 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Sat Nov 11 00:23:36 UTC 2017
pkgbase = inkscape-092-git
pkgdesc = An Open Source vector graphics editor, using Scalable Vector Graphics (SVG) file format, from git branch 0.92.x
pkgver = 20171110.18150
- pkgrel = 1
+ pkgrel = 2
url = https://gitlab.com/inkscape/inkscape
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 43074480524..05768712fea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=inkscape-092-git
pkgver=20171110.18150
-pkgrel=1
+pkgrel=2
pkgdesc="An Open Source vector graphics editor, using Scalable Vector Graphics (SVG) file format, from git branch 0.92.x"
url="https://gitlab.com/inkscape/inkscape"
arch=('i686' 'x86_64')
@@ -31,14 +31,13 @@ pkgver() {
prepare() {
cd "$_gitname"
#fix for inkscape to use python2 with the python 3 package installed.
- sed -i '1s|/usr/bin/python\>|/usr/bin/python2|' cxxtest/*.py
- sed -i '1s|/usr/bin/env python\>|/usr/bin/env python2|g' share/*/{test/,}*.py
+ sed -i 's|"python"|"python2"|g' src/main.cpp
+ find share -type f -name "*.py" -exec \
+ sed -i '1s|/usr/bin/env python\>|/usr/bin/env python2|g' {} \;
+ sed -i '1s|/usr/bin/env python3\>|/usr/bin/env python2|g' CMakeScripts/cmake_consistency_check.py
+ sed -i 's|/usr/bin/env python\>|/usr/bin/env python2|g' share/*/{test/,}*.py
sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp
- sed -i 's|python -c |python2 -c|g' share/extensions/uniconv*.py
sed -i 's|"python"|"python2"|g' src/main.cpp
- sed -i '1s|/usr/bin/env python\>|/usr/bin/env python2|g' share/extensions/ink2canvas/svg.py
- sed -i '1s|/usr/bin/env python\>|/usr/bin/env python2|g' share/extensions/ink2canvas/canvas.py
- sed -i '1s|/usr/bin/env python3\>|/usr/bin/env python2|g' CMakeScripts/cmake_consistency_check.py
}
build() {