mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 08:40:10 -07:00
23 lines
358 B
Bash
Executable File
23 lines
358 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < mandoc-no-warn.patch
|
|
|
|
sed -i '/int dummy/d' compat_err.c
|
|
sed -i 's,"more -s","less",g' main.c
|
|
sed -i "s/CC=.*/CC='$CC'/" configure
|
|
|
|
cat > configure.local <<EOF
|
|
PREFIX=/usr
|
|
MANDIR=/usr/share/man
|
|
LIBDIR=/usr/lib
|
|
SBINDIR=/usr/bin
|
|
CC="${CC:-cc}"
|
|
CFLAGS="$CFLAGS"
|
|
LN="ln -sf"
|
|
EOF
|
|
|
|
./configure
|
|
|
|
make
|
|
make -j1 DESTDIR="$1" base-install
|