# Maintainer: Mark Wagie # Contributor: Joseph DiGiovanni # Contributer: Eric Cheng pkgname=gnome-shell-extension-alphabetical-grid-extension _uuid=AlphabeticalAppGrid@stuarthayhurst pkgver=40.0 pkgrel=1 pkgdesc="Restore the alphabetical ordering of the app grid, removed in GNOME 3.38" arch=('any') url="https://github.com/stuarthayhurst/alphabetical-grid-extension" license=('GPL-3.0-or-later') depends=('gnome-shell') source=("alphabetical-grid-extension-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('75c2408d8a7e888dfe0147403deb4e807557a20be97db3adb4f13706e35bbafd') build() { cd alphabetical-grid-extension-$pkgver make build } package() { cd alphabetical-grid-extension-$pkgver install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}" bsdtar xvf "build/${_uuid}.shell-extension.zip" -C \ "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner mv "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/locale" "$pkgdir/usr/share/" install -Dm644 "extension/schemas/org.gnome.shell.extensions.AlphabeticalAppGrid.gschema.xml" -t \ "$pkgdir/usr/share/glib-2.0/schemas/" rm -rf "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/schemas/" rm "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/LICENSE.txt" }