mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 00:30:06 -07:00
28 lines
425 B
Bash
Executable File
28 lines
425 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < mandoc-no-warn.patch
|
|
|
|
# Change default pager.
|
|
sed 's,"more -s","less",g' main.c > _
|
|
mv -f _ main.c
|
|
|
|
# Use CC rather than broken default.
|
|
sed "s/CC=.*/CC=$CC/" configure > _
|
|
mv -f _ configure
|
|
|
|
cat > configure.local <<EOF
|
|
PREFIX=/usr
|
|
MANDIR=/usr/share/man
|
|
LIBDIR=/usr/lib
|
|
SBINDIR=/usr/bin
|
|
CFLAGS="$CFLAGS -fcommon"
|
|
LN="ln -sf"
|
|
EOF
|
|
|
|
sh ./configure
|
|
|
|
make
|
|
make -j1 base-install
|
|
|
|
chmod 755 "$1/usr/bin/"*
|