Files
ports/main/libxml2/spkgbuild
2023-12-14 11:17:07 +00:00

31 lines
673 B
Plaintext
Executable File

# description : Contains libraries and utilities used for parsing XML files
# homepage : https://github.com/GNOME/libxml2
# depends : icu xz zlib
name=libxml2
version=2.12.3
release=1
source="https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz"
build() {
cd $name-$version
./configure \
--prefix=/usr \
--disable-static \
--with-icu \
--with-history \
--with-python=/usr/bin/python3
make
make DESTDIR=$PKG install
# Cleanup
rm -r $PKG/usr/share/doc \
$PKG/usr/share/gtk-doc
# Remove unneeded references to the ICU libraries
rm -vf $PKG/usr/lib/libxml2.la
sed '/libs=/s/xml2.*/xml2"/' -i $PKG/usr/bin/xml2-config
}