mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-28 16:56:18 +00:00
22 lines
330 B
Bash
Executable File
22 lines
330 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < mandoc-no-warn.patch
|
|
|
|
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:-gcc}"
|
|
CFLAGS="$CFLAGS -fPIE"
|
|
LN="ln -sf"
|
|
EOF
|
|
|
|
./configure
|
|
|
|
make
|
|
make -j1 DESTDIR="$1" base-install
|