summaryrefslogtreecommitdiff
path: root/system/htop/htop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/htop/htop.SlackBuild')
-rw-r--r--system/htop/htop.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/system/htop/htop.SlackBuild b/system/htop/htop.SlackBuild
index ea275db113..308d3f8483 100644
--- a/system/htop/htop.SlackBuild
+++ b/system/htop/htop.SlackBuild
@@ -5,13 +5,12 @@
# Modified by the SlackBuilds.org project
-set -e
-
PRGNAM=htop
-VERSION=0.6.6
+VERSION=0.7
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -25,11 +24,13 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -55,10 +56,6 @@ 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