diff options
Diffstat (limited to 'development/SoQt/SoQt.SlackBuild')
-rw-r--r-- | development/SoQt/SoQt.SlackBuild | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/development/SoQt/SoQt.SlackBuild b/development/SoQt/SoQt.SlackBuild index 0b7408eeba..f18cbb38b7 100644 --- a/development/SoQt/SoQt.SlackBuild +++ b/development/SoQt/SoQt.SlackBuild @@ -4,16 +4,21 @@ # Originally written by Aleksandar B. Samardzic (<asamardzic@matf.bg.ac.yu>) # Maintained as of version 1.5.0 by Niels Horn <niels.horn@gmail.com> -# Revision data 2010/04/13 - -set -e +# Revision data 2010/07/10 PRGNAM=SoQt -VERSION=1.5.0 -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.5.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -35,15 +40,21 @@ elif [ "$ARCH" = "arm" ]; then SLKCFLAGS="-O2 -march=armv4t" LIBDIRSUFFIX="" ARCHQUADLET="-gnueabi" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + ARCHQUADLET="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -chown -R root:root . || true +chown -R root:root . chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ @@ -52,7 +63,7 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ - --build=$ARCH-slackware-linux$GUEABI + --build=$ARCH-slackware-linux$ARCHQUADLET make make install DESTDIR=$PKG @@ -60,14 +71,13 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS BUGS.txt COPYING ChangeLog FAQ INSTALL* LICENSE.GPL \ - NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS BUGS.txt COPYING ChangeLog FAQ INSTALL* LICENSE.GPL NEWS README* \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |