2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00
repo/xorg/libXmeta/build

36 lines
735 B
Plaintext
Raw Normal View History

#!/bin/sh -e
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
2021-07-06 12:18:54 +00:00
--without-xmlto \
--disable-specs \
--disable-static
make
make DESTDIR="$1" install
2021-07-06 12:09:49 +00: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 12:18:54 +00: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"
}
# Remove library documentation.
# False positive.
# shellcheck disable=2115
rm -rf "$1/usr/share"
2021-07-06 12:18:54 +00:00
# Restore kept directories.
! [ -d "$1/usr/share2" ] || {
mv -f "$1/usr/share2" "$1/usr/share"
}