# Maintainer: Christian Schendel pkgname=gnome-shell-extension-arch-update pkgdesc="Update indicator for ArchLinux and Gnome-Shell" pkgver=65 pkgrel=1 url="https://github.com/RaphaelRochet/arch-update" arch=('any') license=( GPL-3.0-or-later ) makedepends=( git ) depends=( dconf fakeroot 'gnome-shell>=1.46' pacman-contrib ) optdepends=( gnome-terminal ) source=("$pkgname-$pkgver::git+$url.git#tag=v$pkgver") b2sums=('cd42ecd26ae7f0ea7013933be2abbc99e620f23d7bf36f406296115dfd288a182c18751806c2532899b50f7f75d6ecc946c3048ba5672cd82984e24afd6d17af') package() { cd "$(dirname "$(find . -name 'metadata.json' -print -quit)")" local uuid uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) local schema schema=$(grep -Po '(?<="settings-schema": ")[^"]*' metadata.json).gschema.xml local destdir="$pkgdir"/usr/share/gnome-shell/extensions/"$uuid" install -dm0755 "$destdir" find . -regextype posix-egrep -regex ".*\.(js|json|css|xml|svg)$" \ -exec install -Dm 644 {} "$destdir"/{} \; rm -rf "$destdir/schemas" install -Dm0644 -t "$pkgdir/usr/share/glib-2.0/schemas" "schemas/$schema" install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" README.md cp -r --no-preserve=ownership,mode locale "$pkgdir"/usr/share } # vim: set ft=sh ts=4 sw=4 et: