summaryrefslogtreecommitdiff
path: root/python/gerbmerge/gerbmerge.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/gerbmerge/gerbmerge.SlackBuild')
-rw-r--r--python/gerbmerge/gerbmerge.SlackBuild8
1 files changed, 7 insertions, 1 deletions
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 . \