utils/htop/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=htop
VERSION=3.4.1
RELEASE=1
SOURCE="https://github.com/htop-dev/htop/releases/download/${VERSION}/htop-${VERSION}.tar.xz"
BUILD_STYLE=make
build() {
msg "configuring htop..."
./configure --prefix="$PREFIX" \
--disable-unicode \
--disable-libcap \
--disable-netlib \
CPPFLAGS="-I$PREFIX/include" \
LDFLAGS="-L$PREFIX/lib -static" \
LIBS="-lcurses -lterminfo"
msg "building htop..."
make CC="${CC:-cc}" $MAKEFLAGS
msg "installing htop..."
make DESTDIR="${DESTDIR:-}" install
}
. ${0%/*}/../../libsh/libdmake.sh
