mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
31 lines
673 B
Plaintext
Executable File
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
|
|
}
|
|
|