python/gerbmerge: Fixed python path

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-16 12:21:44 -04:00
parent d340f92381
commit 2e30630177
2 changed files with 8 additions and 2 deletions

View File

@ -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')

View File

@ -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 . \