| 1 | # Description: an interactive process viewer |
| 2 | # URL: http://htop.sourceforge.net/ |
| 3 | # Packager: Simone Rota, sip at crux dot nu |
| 4 | # Maintainer: Richard Poettler, richard dot poettler at gmail dot com |
| 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 6 | # Depends on: ncurses |
| 7 | |
| 8 | name=htop |
| 9 | version=0.8.1 |
| 10 | release=2 |
| 11 | source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | echo "ac_cv_file__proc_stat=yes" > config.cache |
| 16 | echo "ac_cv_file__proc_meminfo=yes" >> config.cache |
| 17 | sed -i config.h.in -e '/#undef malloc/d' -e '/#undef realloc/d' |
| 18 | |
| 19 | ./configure --build=$CHOST \ |
| 20 | --host=$CTARGET \ |
| 21 | --prefix=/usr \ |
| 22 | --disable-nls \ |
| 23 | --mandir=/usr/man \ |
| 24 | --cache-file=config.cache |
| 25 | |
| 26 | make |
| 27 | make DESTDIR=$PKG install |
| 28 | |
| 29 | rm -rf $PKG/usr/{include,lib} |
| 30 | rm -rf $PKG/usr/share/{applications,pixmaps,} |
| 31 | } |