# Maintainer: Christian Schendel # OriginalMaintainer: Mark Wagie pkgname=gnome-shell-extension-blur-my-shell pkgdesc="Extension that adds a blur look to different parts of the GNOME Shell" pkgver=69 _real_pkgver=68-2 pkgrel=1 arch=('any') url="https://github.com/aunetx/blur-my-shell" license=( GPL-3.0-or-later ) depends=( dconf 'gnome-shell>=1:46' ) makedepends=( git ) source=("$pkgname-$pkgver::git+$url.git#tag=v$_real_pkgver") sha256sums=('36843bd69e1015f8035d36f37b8e3221c29beb43290a5a091eb11f14a4310b46') build() { cd "$pkgname-$pkgver" make build } package() { cd "$pkgname-$pkgver" local uuid uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) schema=$(grep -Po '(?<="settings-schema": ")[^"]*' metadata.json).gschema.xml local destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid" install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" README.md cd build install -dm0755 "$destdir" bsdtar xvf "${uuid}".shell-extension.zip find . -regextype posix-egrep -regex ".*\.(css|glsl|js|json|svg|ui)$" -exec\ install -Dm0644 {} "$destdir"/{} \; cp -r locale "$pkgdir"/usr/share/ install -Dm0644 -t "$pkgdir"/usr/share/glib-2.0/schemas/ schemas/"$schema" } # vim: set ft=sh ts=4 sw=4 et: