desktop/htop/PKGBUILD

34 lines
911 B
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=htop
pkgver=1.0.1
pkgrel=1
pkgdesc="Interactive process viewer"
arch=('i686' 'x86_64')
url="http://htop.sourceforge.net/"
license=('GPL')
depends=('ncurses')
makedepends=('python2')
options=('!emptydirs')
categories=('utils')
source=(http://downloads.sourceforge.net/htop/${pkgname}-${pkgver}.tar.gz)
md5sums=('d3b80d905a6bff03f13896870787f901')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
sed -i 's|ncursesw/curses.h|curses.h|' RichString.h RichString.c configure
sed -i 's|python|python2|' scripts/MakeHeader.py
./configure --prefix=/usr --enable-unicode --enable-openvz \
--enable-vserver
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}