Include swcatalog path in pacman hook

update-appstream-cache.hook should also include usr/share/swcatalog/* in its Path Trigger. Reference: https://www.freedesktop.org/software/appstream/docs/chap-CatalogData.html#spec-asxml-filenaming

The package archlinux-appstream-data switched to /usr/share/swcatalog/ path in version 20230827-2. Subsequently updates to archlinux-appstream-data no longer trigger updates to the appstream cache.

Following is a patch for the package:

diff --git a/PKGBUILD b/PKGBUILD
index 4a3e3f0..44f4136 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=(appstream
          appstream-qt5
          appstream-qt)
 pkgver=1.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Provides a standard for creating app stores across distributions'
 arch=(x86_64)
 url='https://distributions.freedesktop.org/wiki/AppStream'
@@ -41,7 +41,7 @@ source=(https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgve
         update-appstream-cache.hook)
 sha256sums=('fa4d5994e5c6f22e9b66cb0b52e8b5f5d96e7353ea5528b56436e0150829203b'
             'SKIP'
-            '3a96a1479cfd18dad36c2ca3181aabe46af9bf772c00b965d86ec5f55cd0e0eb')
+            'edc632e4a76ebe5efc76a56fe5f797e5c981cca6f2f0111c7ce0170d1330c788')
 validpgpkeys=(D33A3F0CA16B0ACC51A60738494C8A5FBF4DECEB) # Matthias Klumpp <matthias@tenstral.net>
 
 build() {
diff --git a/update-appstream-cache.hook b/update-appstream-cache.hook
index d73dff8..a68002f 100644
--- a/update-appstream-cache.hook
+++ b/update-appstream-cache.hook
@@ -4,6 +4,7 @@ Operation = Install
 Operation = Upgrade
 Operation = Remove
 Target = usr/share/app-info/*
+Target = usr/share/swcatalog/*
 
 [Trigger]
 Type = Package