summaryrefslogtreecommitdiff
path: root/libs/libxml2/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libxml2/MAKEPKG')
-rw-r--r--libs/libxml2/MAKEPKG40
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/libxml2/MAKEPKG b/libs/libxml2/MAKEPKG
new file mode 100644
index 0000000..df6beac
--- /dev/null
+++ b/libs/libxml2/MAKEPKG
@@ -0,0 +1,40 @@
+#!/bin/mkpkg
+# description: XML parsing library
+# url: https://gitlab.gnome.org/GNOME/libxml2
+
+name=libxml2
+version=2.15.4
+release=1
+_short=2.15
+depends=(zlib)
+makedeps=(meson xz)
+source=(https://download.gnome.org/sources/$name/$_short/$name-$version.tar.xz)
+
+patch() {
+ cd $name-$version
+
+ # Don't depend on git
+ sed -i '20,23s/^/#/' meson.build
+}
+
+sha256sums=(
+ "98087fd181d9070724f3fbc65c7377db03038eb92bd882374daff44940138821"
+)
+
+build() {
+ meson setup $name-$version build \
+ --prefix=/usr \
+ --buildtype=plain \
+ -D python=disabled \
+ -D legacy=enabled
+
+ meson compile -C build
+ DESTDIR=$PKG meson install -C build
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh