diff options
author | Andrea Maccis <andrea.maccis@gmail.com> | 2010-05-13 00:24:10 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:10 +0200 |
commit | f642de80fc2862db9f6a1a0cccc01901e79be283 (patch) | |
tree | de17ae8900ffcdb0ea71d0bfd14978b243d98293 /development/SQLAlchemy/SQLAlchemy.SlackBuild | |
parent | f6f71c9c3cfa03321e57b646dd8df671ca5863f4 (diff) | |
download | slackbuilds-f642de80fc2862db9f6a1a0cccc01901e79be283.tar.gz |
development/SQLAlchemy: Updated for version 0.5.5
Diffstat (limited to 'development/SQLAlchemy/SQLAlchemy.SlackBuild')
-rw-r--r-- | development/SQLAlchemy/SQLAlchemy.SlackBuild | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/development/SQLAlchemy/SQLAlchemy.SlackBuild b/development/SQLAlchemy/SQLAlchemy.SlackBuild index b6049163cf..232abe7df3 100644 --- a/development/SQLAlchemy/SQLAlchemy.SlackBuild +++ b/development/SQLAlchemy/SQLAlchemy.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=SQLAlchemy -VERSION=0.4.6 +VERSION=0.5.5 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,25 +33,35 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -python setup.py bdist || exit 1 -tar xvf dist/$PRGNAM-$VERSION.linux-i686.tar.gz -C $PKG || exit 1 +python setup.py install --root=$PKG -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \ + | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGES LICENSE PKG-INFO README* VERSION doc/* examples test \ +cp -a CHANGES* LICENSE PKG-INFO README* doc/* examples test \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -59,4 +69,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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} |