libraries/pyusb: Updated for version 0.4.1

This commit is contained in:
Kyle Guinn 2010-05-13 00:33:23 +02:00 committed by David Somero
parent 7f89ac5dea
commit da921c166d
2 changed files with 11 additions and 6 deletions

View file

@ -18,10 +18,13 @@ DOCS="PKG-INFO README license.txt"
if [ $ARCH = "i486" ]; then if [ $ARCH = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ $ARCH = "i686" ]; then elif [ $ARCH = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ $ARCH = "x86_64" ]; then elif [ $ARCH = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -44,10 +47,10 @@ CXXFLAGS="$SLKCFLAGS" \
python ./setup.py install --root=$PKG python ./setup.py install --root=$PKG
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : \ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : \
| xargs strip --strip-unneeded 2> /dev/null || true | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \
| xargs strip --strip-unneeded 2> /dev/null || true | xargs strip --strip-unneeded 2> /dev/null || true
) )
# Normalize line endings # Normalize line endings
@ -61,4 +64,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="pyusb"
VERSION="0.4.1" VERSION="0.4.1"
HOMEPAGE="http://pyusb.berlios.de/" HOMEPAGE="http://pyusb.berlios.de/"
DOWNLOAD="http://downloads.sourceforge.net/pyusb/pyusb-0.4.1.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/pyusb/pyusb-0.4.1.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="9576c3e471e40e021fa44f36712bbd04" MD5SUM="9576c3e471e40e021fa44f36712bbd04"
MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn" MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com" EMAIL="elyk03@gmail.com"
APPROVED="David Somero" APPROVED="dsomero"