diff options
author | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 15:18:39 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 15:18:39 +0200 |
commit | 39850cb3670af76671643c6ed11c229637f73427 (patch) | |
tree | 07f5062bc5ba483cfe0444095118d313199aafae /system/htop/htop.SlackBuild | |
parent | d27e9954b835827705218b11bcd1ae39c12a81f2 (diff) | |
download | slackbuilds-39850cb3670af76671643c6ed11c229637f73427.tar.gz |
system/htop: Initial import
Diffstat (limited to 'system/htop/htop.SlackBuild')
-rw-r--r-- | system/htop/htop.SlackBuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/system/htop/htop.SlackBuild b/system/htop/htop.SlackBuild new file mode 100644 index 0000000000..ea275db113 --- /dev/null +++ b/system/htop/htop.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Slackware build script for htop +# Written by BP{k} <michiel@slackbuilds.org> + +# Modified by the SlackBuilds.org project + +set -e + +PRGNAM=htop +VERSION=0.6.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="AUTHORS COPYING INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man/ \ + --disable-debug + +make +make install-strip DESTDIR=$PKG + +( 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 +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Rewrite the desktop file so the icon will properly display in kde +sed -i 's#Icon=htop.png#Icon=/usr/share/pixmaps/htop.png#' \ + $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |