aboutsummaryrefslogtreecommitdiff
path: root/libxml2/Pkgfile
diff options
context:
space:
mode:
authorJay Lanagan <j@lngn.net>2025-10-20 01:29:51 -0400
committerJay Lanagan <j@lngn.net>2025-10-20 01:29:51 -0400
commit7585588f291b08e9a79fc5f5be64e845d51d02fb (patch)
tree993c84176baf2d0ac923ded876450643b5e91009 /libxml2/Pkgfile
parent2da80d0ec5ebf1f9db4968db3692e29705d9dd44 (diff)
downloadcrux-xfce4-7585588f291b08e9a79fc5f5be64e845d51d02fb.tar.gz
crux-xfce4-7585588f291b08e9a79fc5f5be64e845d51d02fb.zip
libxml2: initial import
override opt/libxml2-2.15.x because it breaks builds.
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
+}