mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/htop: Initial import
This commit is contained in:
parent
d27e9954b8
commit
39850cb367
5 changed files with 94 additions and 0 deletions
4
system/htop/README
Normal file
4
system/htop/README
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
htop is an interactive process viewer for Linux. It aims to be a 'better top'
|
||||||
|
You can scroll the process list vertically and horizontally, and select a
|
||||||
|
process to be killed with the arrow keys instead of by typing its process
|
||||||
|
id.
|
4
system/htop/doinst.sh
Normal file
4
system/htop/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -x usr/bin/update-desktop-database ]; then
|
||||||
|
usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
67
system/htop/htop.SlackBuild
Normal file
67
system/htop/htop.SlackBuild
Normal file
|
@ -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
|
8
system/htop/htop.info
Normal file
8
system/htop/htop.info
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
PRGNAM="htop"
|
||||||
|
VERSION="0.6.6"
|
||||||
|
HOMEPAGE="http://htop.sourceforge.net"
|
||||||
|
DOWNLOAD="http://dl.sourceforge.net/htop/htop-0.6.6.tar.gz"
|
||||||
|
MD5SUM="12c8e6e97bd50a4e0a4730d23675fc7b"
|
||||||
|
MAINTAINER="Michiel van Wessem"
|
||||||
|
EMAIL="michiel@slackbuilds.org"
|
||||||
|
APPROVED="rworkman"
|
11
system/htop/slack-desc
Normal file
11
system/htop/slack-desc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
htop: Htop (Process Viewer)
|
||||||
|
htop:
|
||||||
|
htop: This is htop, an interactive process viewer for Linux. It is a text-mode
|
||||||
|
htop: application (for console or X terminals) and requires ncurses. htop has
|
||||||
|
htop: been ested with Linux 2.4 and 2.6 kernels.
|
||||||
|
htop:
|
||||||
|
htop: Homepage: http://htop.sourceforge.net/
|
||||||
|
htop:
|
||||||
|
htop:
|
||||||
|
htop:
|
||||||
|
htop:
|
Loading…
Reference in a new issue