diff options
author | dudemanguy | 2021-01-16 10:00:28 -0600 |
---|---|---|
committer | dudemanguy | 2021-01-16 10:00:28 -0600 |
commit | 55b1bb14cbab70e37c706c928a3cc5a56fadfda8 (patch) | |
tree | cbe82cf9fba66380ac87575291b53278a5b5d58f | |
parent | 3ae4c6613edc5ee06aa0f8511d4b5fc80cf80c83 (diff) | |
download | aur-55b1bb14cbab70e37c706c928a3cc5a56fadfda8.tar.gz |
2.66.4-2
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | gio-querymodules.hook | 5 | ||||
-rw-r--r-- | gio-querymodules.script | 7 |
4 files changed, 27 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = glib2-patched-thumbnailer pkgdesc = GLib2 patched with ahodesuka's thumbnailer patch. pkgver = 2.66.4 - pkgrel = 1 + pkgrel = 2 url = https://gist.github.com/Dudemanguy/d199759b46a79782cc1b301649dec8a5 arch = x86_64 license = LGPL @@ -34,14 +34,18 @@ pkgbase = glib2-patched-thumbnailer options = !docs source = git+https://gitlab.gnome.org/GNOME/glib.git#commit=bacbec652d356895ec493f3de2f2f6f4c7dafde0 source = noisy-glib-compile-schemas.diff + source = glib-thumbnailer.patch + source = glib-compile-schemas.hook source = glib-compile-schemas.hook source = gio-querymodules.hook - source = glib-thumbnailer.patch + source = gio-querymodules.script sha256sums = SKIP sha256sums = 81a4df0b638730cffb7fa263c04841f7ca6b9c9578ee5045db6f30ff0c3fc531 - sha256sums = 64ae5597dda3cc160fc74be038dbe6267d41b525c0c35da9125fbf0de27f9b25 - sha256sums = 557c88177f011ced17bdeac1af3f882b2ca33b386a866fdf900b35f927a2bbe8 sha256sums = 9f055d2a4f3fa08a7f0ca9f233a0ca6925247f572fb6873af7ac1e1f43f23d74 + sha256sums = 64ae5597dda3cc160fc74be038dbe6267d41b525c0c35da9125fbf0de27f9b25 + sha256sums = 64ae5597dda3cc160fc74be038dbe6267d41b525c0c35da9125fbf0de27f9b25 + sha256sums = 2a9f9b8235f48e3b7d0f6cfcbc76cd2116c45f28692cac4bd61074c495bd5eb7 + sha256sums = 92d08db5aa30bda276bc3d718e7ff9dd01dc40dcab45b359182dcc290054e24e pkgname = glib2-patched-thumbnailer @@ -5,7 +5,7 @@ pkgname=glib2-patched-thumbnailer pkgver=2.66.4 -pkgrel=1 +pkgrel=2 pkgdesc="GLib2 patched with ahodesuka's thumbnailer patch." url="https://gist.github.com/Dudemanguy/d199759b46a79782cc1b301649dec8a5" arch=(x86_64) @@ -23,14 +23,16 @@ license=(LGPL) _commit=bacbec652d356895ec493f3de2f2f6f4c7dafde0 # tags/2.66.4^0 source=("git+https://gitlab.gnome.org/GNOME/glib.git#commit=$_commit" noisy-glib-compile-schemas.diff + glib-thumbnailer.patch glib-compile-schemas.hook - gio-querymodules.hook - glib-thumbnailer.patch) + glib-compile-schemas.hook gio-querymodules.{hook,script}) sha256sums=('SKIP' '81a4df0b638730cffb7fa263c04841f7ca6b9c9578ee5045db6f30ff0c3fc531' + '9f055d2a4f3fa08a7f0ca9f233a0ca6925247f572fb6873af7ac1e1f43f23d74' '64ae5597dda3cc160fc74be038dbe6267d41b525c0c35da9125fbf0de27f9b25' - '557c88177f011ced17bdeac1af3f882b2ca33b386a866fdf900b35f927a2bbe8' - '9f055d2a4f3fa08a7f0ca9f233a0ca6925247f572fb6873af7ac1e1f43f23d74') + '64ae5597dda3cc160fc74be038dbe6267d41b525c0c35da9125fbf0de27f9b25' + '2a9f9b8235f48e3b7d0f6cfcbc76cd2116c45f28692cac4bd61074c495bd5eb7' + '92d08db5aa30bda276bc3d718e7ff9dd01dc40dcab45b359182dcc290054e24e') pkgver() { cd glib @@ -63,7 +65,9 @@ build() { package() { DESTDIR="$pkgdir" meson install -C build + install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook + install -D gio-querymodules.script "$pkgdir/usr/share/libalpm/scripts/gio-querymodules" # Avoid a dep on sysprof sed -i 's/, sysprof-capture-4//' "$pkgdir"/usr/lib/pkgconfig/*.pc diff --git a/gio-querymodules.hook b/gio-querymodules.hook index 857814791ac3..09b0c2f89c88 100644 --- a/gio-querymodules.hook +++ b/gio-querymodules.hook @@ -3,9 +3,10 @@ Type = Path Operation = Install Operation = Upgrade Operation = Remove -Target = usr/lib/gio/modules/*.so +Target = usr/lib/gio/modules/ [Action] Description = Updating GIO module cache... When = PostTransaction -Exec = /usr/bin/gio-querymodules /usr/lib/gio/modules +Exec = /usr/share/libalpm/scripts/gio-querymodules +NeedsTargets diff --git a/gio-querymodules.script b/gio-querymodules.script new file mode 100644 index 000000000000..5c218775790a --- /dev/null +++ b/gio-querymodules.script @@ -0,0 +1,7 @@ +#!/bin/bash + +while read -r d; do + [[ -d $d ]] || continue + gio-querymodules "$d" + rmdir --ignore-fail-on-non-empty "$d" +done |