diff options
author | Cezary M. Kruk <c.kruk@bigfoot.com> | 2010-05-13 00:23:35 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:23:35 +0200 |
commit | 9917dea7d7240df327182c33ceb5a1bb6952e0d2 (patch) | |
tree | c323a39d78e920f60bc58e56347a55eab24c4587 /desktop/wmtop/wmtop.SlackBuild | |
parent | 88ebaf3b99eb35937666b507d9177b1a6b11e05f (diff) | |
download | slackbuilds-9917dea7d7240df327182c33ceb5a1bb6952e0d2.tar.gz |
desktop/wmtop: Updated for version 0.84
Diffstat (limited to 'desktop/wmtop/wmtop.SlackBuild')
-rw-r--r-- | desktop/wmtop/wmtop.SlackBuild | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/desktop/wmtop/wmtop.SlackBuild b/desktop/wmtop/wmtop.SlackBuild index 5db808ef45..9bd5f32650 100644 --- a/desktop/wmtop/wmtop.SlackBuild +++ b/desktop/wmtop/wmtop.SlackBuild @@ -18,10 +18,13 @@ 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 @@ -30,7 +33,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -39,35 +42,24 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" make linux +make \ + PREFIX=/usr \ + INCS="-I/usr/include" \ + LIBDIR="-L/usr/lib${LIBDIRSUFFIX}/X11" \ + OPTS="$SLKCFLAGS" \ + linux -mkdir -p $PKG/usr/bin -mkdir -p $PKG/usr/man/man1 - -# Executable and manual are copied to the correct location +mkdir -p $PKG/usr/bin $PKG/usr/man/man1 cp -a wmtop $PKG/usr/bin -cp -a wmtop.1 $PKG/usr/man/man1 - -( 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 -) - -( 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 -) +strip --strip-unneeded $PKG/usr/bin/wmtop +gzip -9c wmtop.1 > $PKG/usr/man/man1/wmtop.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a BUGS CHANGES COPYING README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a BUGS CHANGES COPYING README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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} |