repo/core/mandoc/build

27 lines
510 B
Plaintext
Raw Normal View History

2019-08-13 04:49:28 -06:00
#!/bin/sh -e
2019-11-17 18:05:39 -07:00
sed -i 's,"more -s","less",g' main.c
2020-01-21 14:17:06 -07:00
sed -i "s/CC=.*/CC='$CC'/" configure
2019-08-13 04:49:28 -06:00
cat > configure.local <<EOF
PREFIX=/usr
MANDIR=/usr/share/man
LIBDIR=/usr/lib
2019-10-08 11:45:37 -06:00
CC="${CC:-gcc}"
2019-08-13 04:49:28 -06:00
CFLAGS="$CFLAGS"
MANPATH_DEFAULT=/usr/share/man
LN="ln -sf"
EOF
MANPATH_BASE=/usr/share/man ./configure
make
make -j1 DESTDIR="$1" base-install lib-install
2019-08-29 04:49:04 -06:00
# Make binaries writable.
chmod -v u+w "$1/usr/bin/"*
# Remove all development files.
rm -rf "$1/usr/include" \
"$1/usr/lib" \
"$1/usr/share/man/man3"