blob: 4875f88bd81a37cd313b660754de572557c438b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>
pkgname=gnome-shell-extension-privacy-menu
pkgver=21.0
pkgrel=1
pkgdesc="Privacy Quick Settings Menu GNOME Extension"
arch=('any')
url="https://github.com/stuarthayhurst/privacy-menu-extension"
license=('GPL3')
depends=('glib2' 'gnome-shell')
makedepends=('git')
checkdepends=('appstream-glib')
source=($pkgname::git+$url.git#tag=v$pkgver)
b2sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
make build
}
package() {
cd $pkgname
local uuid=$(grep -Po '(?<="uuid": ")[^"]*' extension/metadata.json)
install -d "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
bsdtar -xvf build/${uuid}.shell-extension.zip -C "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
}
|