53 lines
1.6 KiB
Bash
53 lines
1.6 KiB
Bash
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
|
pkgname=gnome-shell-extension-alphabetical-grid-extension
|
|
pkgdesc="Restore the alphabetical ordering of the app grid, removed in GNOME 3.38"
|
|
pkgver=43.0
|
|
pkgrel=1
|
|
url="https://github.com/stuarthayhurst/alphabetical-grid-extension"
|
|
arch=('any')
|
|
license=(
|
|
GPL-3.0-or-later
|
|
)
|
|
makedepends=(
|
|
git
|
|
optipng
|
|
)
|
|
depends=(
|
|
dconf
|
|
'gnome-shell>=1:45'
|
|
)
|
|
provides=(
|
|
"${pkgname%.0}"
|
|
)
|
|
conflicts=(
|
|
gnome-shell-extension-alphabetical-grid-extension-git
|
|
)
|
|
|
|
source=("$pkgname-$pkgver::git+$url.git#tag=v$pkgver")
|
|
b2sums=('f6cc61e34dd137f47d4db28c9b07df45cf30bb8d8301ac6640c8e9bd0dd137ac71d08baf65c7930b78f7c2a09752b80fd755201d5f78e16a25d893cb044fb0d2')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
make release
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver/build" || exit
|
|
bsdtar -xvf "AlphabeticalAppGrid@stuarthayhurst.shell-extension.zip"
|
|
local uuid
|
|
uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
|
|
local schema=org.gnome.shell.extensions.AlphabeticalAppGrid.gschema.xml
|
|
local destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid"
|
|
|
|
install -dm0755 "$destdir"
|
|
find . -regextype posix-egrep -regex ".*\.(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"
|
|
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENCE.txt
|
|
install -dm0755 "$pkgdir/usr/share/doc/$pkgname"
|
|
cd ..
|
|
cp -r docs/* -t "$pkgdir/usr/share/doc/$pkgname"
|
|
}
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|