mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-23 07:40:11 -07:00
26 lines
472 B
Bash
Executable File
26 lines
472 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
sed -i'' 's,"more -s","less",g' main.c
|
|
|
|
cat > configure.local <<EOF
|
|
PREFIX=/usr
|
|
MANDIR=/usr/share/man
|
|
LIBDIR=/usr/lib
|
|
CC="${CC:-gcc}"
|
|
CFLAGS="$CFLAGS"
|
|
MANPATH_DEFAULT=/usr/share/man
|
|
LN="ln -sf"
|
|
EOF
|
|
|
|
MANPATH_BASE=/usr/share/man ./configure
|
|
make
|
|
make -j1 DESTDIR="$1" base-install lib-install
|
|
|
|
# Make binaries writable.
|
|
chmod -v u+w "$1/usr/bin/"*
|
|
|
|
# Remove all development files.
|
|
rm -rf "$1/usr/include" \
|
|
"$1/usr/lib" \
|
|
"$1/usr/share/man/man3"
|