libraries/xmpppy: Fixed python path

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-16 12:14:53 -04:00
parent 12c2ebba14
commit 0117dcd754

View file

@ -24,26 +24,26 @@
PRGNAM=xmpppy
VERSION=0.5.0rc1
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
case "$(uname -m)" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-02 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
SLKCFLAGS="-02 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-02 -fPIC"
LIBDIRSUFFIX="64"
SLKCFLAGS="-02 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-02"
LIBDIRSUFFIX=""
SLKCFLAGS="-02"
LIBDIRSUFFIX=""
fi
CWD=$(pwd)
@ -65,8 +65,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/python2.6/site-packages/
cp -a xmpp $PKG/usr/lib$LIBDIRSUFFIX/python2.6/site-packages/
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/
cp -a xmpp $PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* ChangeLog MANIFEST README $PKG/usr/doc/$PRGNAM-$VERSION