summaryrefslogtreecommitdiff
path: root/repo/gdk-pixbuf
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/gdk-pixbuf
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/gdk-pixbuf')
-rw-r--r--repo/gdk-pixbuf/disable-tests.patch13
-rw-r--r--repo/gdk-pixbuf/gdk-pixbuf.xibuild37
2 files changed, 50 insertions, 0 deletions
diff --git a/repo/gdk-pixbuf/disable-tests.patch b/repo/gdk-pixbuf/disable-tests.patch
new file mode 100644
index 0000000..01ee3a6
--- /dev/null
+++ b/repo/gdk-pixbuf/disable-tests.patch
@@ -0,0 +1,13 @@
+Index: meson.build
+--- a/meson.build
++++ b/meson.build
+@@ -398,7 +398,9 @@ endif
+ subdir('po')
+
+ if not meson.is_cross_build()
+- subdir('tests')
++ if get_option('installed_tests')
++ subdir('tests')
++ endif
+ subdir('thumbnailer')
+ endif
diff --git a/repo/gdk-pixbuf/gdk-pixbuf.xibuild b/repo/gdk-pixbuf/gdk-pixbuf.xibuild
new file mode 100644
index 0000000..fe704e9
--- /dev/null
+++ b/repo/gdk-pixbuf/gdk-pixbuf.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME="gdk-pixbuf"
+DESC="GTK+ image loading library"
+
+MAKEDEPS="meson ninja gobject-introspection"
+DEPS="sbase glib shared-mime-info intltool libpng libjpeg-turbo tiff musl"
+
+PKG_VER=2.42.8
+SOURCE="https://download.gnome.org/sources/gdk-pixbuf/${PKG_VER%.*}/gdk-pixbuf-$PKG_VER.tar.xz"
+
+ADDITIONAL="disable-tests.patch"
+
+prepare () {
+ touch gdk-pixbuf/loaders.cache
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ -Dinstalled_tests=false \
+ .. &&
+ ninja
+}
+
+check () {
+ meson test -t 10
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
+
+postinstall () {
+ gdk-pixbuf-query-loaders --update-cache
+}