summaryrefslogtreecommitdiff
path: root/python/gerbmerge
diff options
context:
space:
mode:
Diffstat (limited to 'python/gerbmerge')
-rw-r--r--python/gerbmerge/fix-install-paths.patch2
-rw-r--r--python/gerbmerge/gerbmerge.SlackBuild8
2 files changed, 8 insertions, 2 deletions
diff --git a/python/gerbmerge/fix-install-paths.patch b/python/gerbmerge/fix-install-paths.patch
index dd6ea36f71..dbe20a3f57 100644
--- a/python/gerbmerge/fix-install-paths.patch
+++ b/python/gerbmerge/fix-install-paths.patch
@@ -6,7 +6,7 @@ diff -Naur gerbmerge-1.8old/setup.py gerbmerge-1.8new/setup.py
BinDir = '.'
else:
- DestLib = distutils.sysconfig.get_config_var('LIBPYTHON')
-+ DestLib = "/usr/lib/python2.6"
++ DestLib = "/usr/lib/python2.7"
DestDir = os.path.join(DestLib, 'gerbmerge')
BinFiles = ['misc/gerbmerge']
BinDir = distutils.sysconfig.get_config_var('BINDIR')
diff --git a/python/gerbmerge/gerbmerge.SlackBuild b/python/gerbmerge/gerbmerge.SlackBuild
index d3c89b1398..c4d085b556 100644
--- a/python/gerbmerge/gerbmerge.SlackBuild
+++ b/python/gerbmerge/gerbmerge.SlackBuild
@@ -22,6 +22,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
set -e
rm -rf $PKG
@@ -31,7 +37,7 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-patch -p1 < $CWD/fix-install-paths.patch
+sed s/lib/lib$LIBDIRSUFFIX/ $CWD/fix-install-paths.patch | patch -p1
chown -R root:root .
find . \