Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging 
/ Packages / gdk-pixbuf2


Commits:
971becbf by David Runge at 2026-07-16T12:50:19+02:00
Replace use-case of alpm-install-scriptlet with alpm-hooks file

The removal of the cache file for the GDK-Pixbuf loader modules can be
achieved using a more declarative alpm-hooks file.

Fixes: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gdk-pixbuf2/-/work_items/16
Signed-off-by: David Runge <[email protected]>

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- + gdk-pixbuf-remove-loaders-cache.hook
- − gdk-pixbuf2.install


Changes:

=====================================
.SRCINFO
=====================================
@@ -17,11 +17,12 @@ pkgbase = gdk-pixbuf2
        depends = shared-mime-info
        source = git+https://gitlab.gnome.org/GNOME/gdk-pixbuf.git#tag=2.44.7
        source = gdk-pixbuf-query-loaders.hook
+       source = gdk-pixbuf-remove-loaders-cache.hook
        b2sums = 
0a0c801939c6cc6f647714962491bc0d4673349899fb99c4760782c99f56ca3cc16c1159a2de389372f5b6eab12ad9eb7c9f6521ee9b983a4c8435a70da22639
        b2sums = 
5a00d34888e207d70d02369015d029f4c0450fc5a02b4b257de8e5df04380dc550723f351433859224c96c3c6390896f2166673af65e8a09eb57024f5a34301b
+       b2sums = 
7e817a1ada31463d55d289127e1c8179fd2afdfa26b438786daf26fdd311eb10f93ea84132d65921508cf7746d3246fdc46b170fcb2c2fc80a0f645d428d06e5
 
 pkgname = gdk-pixbuf2
-       install = gdk-pixbuf2.install
        optdepends = libheif: Load .avif, .heic and .heif
        optdepends = libopenraw: Load .arw, .cr2, .crw, .dng, .erf, .mrw, .nef, 
.orf, .pef and .raf
        optdepends = libwmf: Load .apm and .wmf


=====================================
PKGBUILD
=====================================
@@ -29,9 +29,11 @@ makedepends=(
 source=(
   "git+https://gitlab.gnome.org/GNOME/gdk-pixbuf.git#tag=$pkgver";
   gdk-pixbuf-query-loaders.hook
+  gdk-pixbuf-remove-loaders-cache.hook
 )
 
b2sums=('0a0c801939c6cc6f647714962491bc0d4673349899fb99c4760782c99f56ca3cc16c1159a2de389372f5b6eab12ad9eb7c9f6521ee9b983a4c8435a70da22639'
-        
'5a00d34888e207d70d02369015d029f4c0450fc5a02b4b257de8e5df04380dc550723f351433859224c96c3c6390896f2166673af65e8a09eb57024f5a34301b')
+        
'5a00d34888e207d70d02369015d029f4c0450fc5a02b4b257de8e5df04380dc550723f351433859224c96c3c6390896f2166673af65e8a09eb57024f5a34301b'
+        
'7e817a1ada31463d55d289127e1c8179fd2afdfa26b438786daf26fdd311eb10f93ea84132d65921508cf7746d3246fdc46b170fcb2c2fc80a0f645d428d06e5')
 
 prepare() {
   cd gdk-pixbuf
@@ -67,7 +69,6 @@ package_gdk-pixbuf2() {
     "libwmf: Load .apm and .wmf"
   )
   provides=(libgdk_pixbuf-2.0.so)
-  install=gdk-pixbuf2.install
 
   meson install -C build --destdir "$pkgdir"
 


=====================================
gdk-pixbuf-remove-loaders-cache.hook
=====================================
@@ -0,0 +1,9 @@
+[Trigger]
+Type = Package
+Operation = Remove
+Target = gdk-pixbuf2
+
+[Action]
+Description = Removing cache for GDK-Pixbuf loader modules...
+When = PreTransaction
+Exec = /usr/bin/rm --force /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache


=====================================
gdk-pixbuf2.install deleted
=====================================
@@ -1,3 +0,0 @@
-pre_remove() {
-    rm -f usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
-}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gdk-pixbuf2/-/commit/971becbf6266bb6f5e7ae1e1903d6ceca68a26f5

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gdk-pixbuf2/-/commit/971becbf6266bb6f5e7ae1e1903d6ceca68a26f5
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to