master chld/ports-heresy / utils / htop / ndmake.sh
 1#!/bin/sh -ue
 2NAME=htop
 3VERSION=3.4.1
 4RELEASE=1
 5SOURCE="https://github.com/${NAME}-dev/${NAME}/releases/download/${VERSION}/htop-${VERSION}.tar.xz"
 6BUILD_STYLE=make
 7
 8build() {
 9	msg "configuring htop..."
10    ./configure --prefix="$PREFIX" \
11        --disable-unicode \
12        --disable-libcap \
13        --disable-netlib \
14	CFLAGS='-static'
15        CPPFLAGS="-I$PREFIX/include -static" \
16        LDFLAGS="-L$PREFIX/lib -static" \
17        LIBS="-lcursesw -lterminfo"
18	msg "building htop..."
19    make $MAKEFLAGS
20    msg "installing htop..."
21    make DESTDIR="${DESTDIR:-}" install
22}
23
24. ${0%/*}/../../libsh/libdmake.sh