aboutsummaryrefslogtreecommitdiff
path: root/libxml2/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/Pkgfile')
-rw-r--r--libxml2/Pkgfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/libxml2/Pkgfile b/libxml2/Pkgfile
new file mode 100644
index 0000000..5e434b2
--- /dev/null
+++ b/libxml2/Pkgfile
@@ -0,0 +1,28 @@
+# Description: XML library version 2
+# URL: https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
+# Maintainer: Juergen Daubert, jue at crux dot nu
+# Depends on: zlib
+# Optional: doxygen
+
+name=libxml2
+version=2.14.6
+release=1
+source=(https://download.gnome.org/sources/libxml2/${version:0:4}/$name-$version.tar.xz)
+
+build() {
+ prt-get isinst doxygen && PKGMK_LIBXML2+=' -D python=enabled'
+
+ # Don't depend on git
+ sed -i '20,23s/^/#/' $name-$version/meson.build
+
+ meson setup $name-$version build $PKGMK_LIBXML2 \
+ --prefix=/usr \
+ --buildtype=plain \
+ --wrap-mode nodownload \
+ -D b_lto=true \
+ -D b_pie=true \
+ -D legacy=enabled
+
+ meson compile -C build -j ${JOBS:-1}
+ DESTDIR=$PKG meson install -C build
+}