Browse Source

gdk-pixbuf: add hooks for updating loaders cache

build-on-device
Leonid Plyushch 5 years ago
parent
commit
e98afd4bef
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 12
      packages/gdk-pixbuf/build.sh
  2. 2
      packages/gdk-pixbuf/hooks/postinst.in
  3. 2
      packages/gdk-pixbuf/hooks/postrm.in
  4. 1
      packages/gdk-pixbuf/hooks/triggers.in

12
packages/gdk-pixbuf/build.sh

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/gdk-pixbuf/
TERMUX_PKG_DESCRIPTION="Library for image loading and manipulation"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_VERSION=2.40.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${TERMUX_PKG_VERSION:0:4}/gdk-pixbuf-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=1582595099537ca8ff3b99c6804350b4c058bb8ad67411bbaae024ee7cead4e6
TERMUX_PKG_DEPENDS="glib, libpng, libtiff, libjpeg-turbo"
@ -12,3 +13,14 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dgir=false
-Dx11=false
"
termux_step_create_debscripts() {
for i in postinst postrm triggers; do
sed \
"s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \
"${TERMUX_PKG_BUILDER_DIR}/hooks/${i}.in" > ./${i}
chmod 755 ./${i}
done
unset i
chmod 644 ./triggers
}

2
packages/gdk-pixbuf/hooks/postinst.in

@ -0,0 +1,2 @@
#!@TERMUX_PREFIX@/bin/sh
gdk-pixbuf-query-loaders --update-cache

2
packages/gdk-pixbuf/hooks/postrm.in

@ -0,0 +1,2 @@
#!@TERMUX_PREFIX@/bin/sh
rm -f @TERMUX_PREFIX@/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache

1
packages/gdk-pixbuf/hooks/triggers.in

@ -0,0 +1 @@
interest-noawait @TERMUX_PREFIX@/lib/gdk-pixbuf-2.0/2.10.0/loaders
Loading…
Cancel
Save