2021-07-06 06:01:01 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2021-07-06 06:21:38 -06:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2021-07-06 06:18:54 -06:00
|
|
|
--without-xmlto \
|
|
|
|
--disable-specs \
|
2021-07-06 06:01:01 -06:00
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
|
2021-07-06 06:09:49 -06:00
|
|
|
# Some X11 packages install to /usr/share.
|
|
|
|
! [ -d "$1/usr/share/pkgconfig" ] || {
|
|
|
|
mkdir -p "$1/usr/lib"
|
|
|
|
mv -f "$1/usr/share/pkgconfig" "$1/usr/lib"
|
|
|
|
}
|
|
|
|
|
2021-07-06 06:18:54 -06:00
|
|
|
# We need to keep this around.
|
|
|
|
! [ -d "$1/usr/share/aclocal" ] || {
|
|
|
|
mkdir -p "$1/usr/share2"
|
|
|
|
mv -f "$1/usr/share/aclocal" "$1/usr/share2"
|
|
|
|
}
|
|
|
|
|
2021-07-06 06:01:01 -06:00
|
|
|
# Remove library documentation.
|
|
|
|
# False positive.
|
|
|
|
# shellcheck disable=2115
|
|
|
|
rm -rf "$1/usr/share"
|
2021-07-06 06:18:54 -06:00
|
|
|
|
|
|
|
# Restore kept directories.
|
|
|
|
! [ -d "$1/usr/share2" ] || {
|
|
|
|
mv -f "$1/usr/share2" "$1/usr/share"
|
|
|
|
}
|