2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00
repo/extra/mandoc/build

27 lines
412 B
Plaintext
Raw Normal View History

2019-08-13 04:49:28 -06:00
#!/bin/sh -e
patch -p1 < mandoc-no-warn.patch
2021-07-03 15:04:59 -06:00
# Change default pager.
sed 's,"more -s","less",g' main.c > _
mv -f _ main.c
# Use CC rather than broken default.
2021-07-17 20:50:34 -06:00
sed "s/CC=.*/CC=$CC/" configure > _
2021-07-03 15:04:59 -06:00
mv -f _ 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-08-13 04:49:28 -06:00
LN="ln -sf"
EOF
2021-07-28 03:33:56 -06:00
sh ./configure
2019-08-29 04:49:04 -06:00
make
2023-03-02 07:40:00 -07:00
make -j1 DESTDIR="$1" base-install
2021-07-28 03:35:19 -06:00
chmod 755 "$1/usr/bin/"*