blob: 82834a42b128e89981ca866a8de98c37a7c69101 (
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
34
35
36
37
38
39
40
|
# Maintainer: XZS <d.f.fischer at web dot de>
# To only build some of the extensions, remove
# the unwanted ones from the $extensions variable.
extensions=('brightness' 'volume' 'user' 'location')
pkgbase='gnome-shell-extension-aggregatemenu-hider-git'
for e in ${extensions[@]}; do
local pkg=gnome-shell-extension-hide-$e-git
pkgname+=($pkg)
eval "package_${pkg}() {
package ${e^*}
}"
done
pkgdesc="A generator for Gnome Shell extensions that hide items from the aggregate menu."
pkgver=3
pkgrel=4
arch=(any)
url='https://github.com/dffischer/gnome-aggregatemenu-hider'
license=(GPLv3)
depends=('gnome-shell')
makedepends=('waf')
source=("$pkgbase::git://github.com/dffischer/gnome-aggregatemenu-hider.git")
md5sums=('SKIP')
build() {
join() {
local IFS="$1"; shift; echo "$*";
}
cd $pkgbase
waf --prefix=/usr configure
waf --targets=$(join , ${extensions[@]^*}) build
}
package() {
cd $pkgbase
waf --destdir="$pkgdir" --targets=$1 install
pkgdesc=\
"$(grep -Po '(?<="description": ").*(?=")' build/hide-$1@*/metadata.json)"
}
|