kiss-mfavila-small/ports/procps-ng/build

24 lines
424 B
Bash
Executable File

#!/bin/sh -e
./configure \
--prefix=/usr \
--sbindir=/usr/bin
# Fix includes for w.c
sed -i 's|HAVE_UTMPX_H|NO|g' w.c
# Fix includes for proc/escape.c
sed -i '/\#endif/a #include <langinfo.h>' proc/escape.c
make CCLD="${CC:-cc} -all-static"
make DESTDIR="$1" install
# Prevent redundant junk from getting in.
for file in sysctl uptime bc dc
do
rm "$1/usr/bin/$file"
done
rm -rf "$1/usr/share"