2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-10-04 00:10:58 -06:00
repo/extra/mandoc/build

23 lines
359 B
Plaintext
Raw Normal View History

2019-08-13 04:49:28 -06:00
#!/bin/sh -e
patch -p1 < mandoc-no-warn.patch
2020-02-11 16:29:13 -07:00
sed -i '/int dummy/d' compat_err.c
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
2020-02-10 14:30:17 -07:00
SBINDIR=/usr/bin
2019-10-08 11:45:37 -06:00
CC="${CC:-gcc}"
2020-02-10 17:28:19 -07:00
CFLAGS="$CFLAGS"
2019-08-13 04:49:28 -06:00
LN="ln -sf"
EOF
./configure
2019-08-29 04:49:04 -06:00
make
make -j1 DESTDIR="$1" base-install