libXmeta: Keep around aclocal

This commit is contained in:
Dylan Araps 2021-07-06 15:18:54 +03:00
parent 8a1debca8a
commit c528894622
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -1,8 +1,11 @@
#!/bin/sh -e
CFLAGS_FOR_BUILD=-fPIC \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--without-xmlto \
--disable-specs \
--disable-static
make
@ -14,7 +17,18 @@ make DESTDIR="$1" install
mv -f "$1/usr/share/pkgconfig" "$1/usr/lib"
}
# 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"
# Restore kept directories.
! [ -d "$1/usr/share2" ] || {
mv -f "$1/usr/share2" "$1/usr/share"
}