diff options
author | Llewelyn Trahaearn | 2018-08-10 15:33:49 -0700 |
---|---|---|
committer | Llewelyn Trahaearn | 2018-08-10 15:33:49 -0700 |
commit | 1235ed5a674547c0e6330ac5fa9a9be41e85de85 (patch) | |
tree | 6523197489cb0a8fc945ed48b62a79463cd29e35 | |
parent | c2d482be107d6d408d9d254d26c17936956c06e6 (diff) | |
download | aur-1235ed5a674547c0e6330ac5fa9a9be41e85de85.tar.gz |
Clean up install.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-arch-update pkgdesc = Convenient indicator for Arch Linux updates in GNOME Shell. pkgver = 27 - pkgrel = 1 + pkgrel = 2 url = https://github.com/RaphaelRochet/arch-update arch = any license = GPL3 @@ -3,7 +3,7 @@ pkgname=gnome-shell-extension-arch-update pkgver=27 -pkgrel=1 +pkgrel=2 pkgdesc="Convenient indicator for Arch Linux updates in GNOME Shell." arch=('any') url="https://github.com/RaphaelRochet/arch-update" @@ -15,10 +15,17 @@ sha512sums=('aedb0f6b710333d9c5bc474265ad17e181608141e8e2ada504a1f13334bd01abaf2 package() { - _uuid='arch-update@RaphaelRochet' - _install_dir="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" - - install -dm655 $_install_dir cd "arch-update-${pkgver}" - cp -r * $_install_dir + # Locate the extension. + _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" '{}' + + find -name '*.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 } |