# Maintainer: Llewelyn Trahaearn # Contributor: Michael Wendland pkgname=gnome-shell-extension-arch-update pkgver=37 pkgrel=1 pkgdesc="Convenient indicator for Arch Linux updates in GNOME Shell." arch=('any') url="https://github.com/RaphaelRochet/arch-update" license=('GPL3') depends=('fakeroot' 'gnome-shell>=3.18' 'pacman-contrib') conflicts=('gnome-shell-extensions-git') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha512sums=('77fdc827a6519eb1bb6958ba1d85735435cea6ca43406dab7a98ef8033c0279ae42115cd072a948e2307de38242249b085220ffbcbb1a3b49289da4c78f8b64f') package() { # Locate the extension. cd "$(dirname $(find -name 'metadata.json' -print -quit))" _extname=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_extname}" # Copy extension files into place. find -maxdepth 1 \( -iname '*.js*' -or -iname '*.css' -or -iname '*.ui' \) -exec install -Dm644 -t "${_destdir}" '{}' + find -maxdepth 2 \( -iname '*.svg*' \) -exec install -Dm644 -t "${_destdir}/icons" '{}' + install -Dm644 prefs.xml "${_destdir}" find -name '*.gschema.xml' -exec install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas/" '{}' + cd locale for locale in */ do install -Dm644 -t "${_destdir}/locale/${locale}/LC_MESSAGES" "${locale}/LC_MESSAGES"/*.mo done }