blob: 93394b0552be54740d494122c89525e3c6b1f903 (
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
|
# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com>
pkgname=gnome-shell-extension-no-annoyance-git
pkgver=r23.e37b5b3
pkgrel=1
pkgdesc='Removes the “Window is ready” notification and puts the window into focus'
url='https://github.com/BjoernDaase/noannoyance'
license=('GPL2')
arch=('any')
conflicts=(${pkgname%-git})
provides=(${pkgname%-git})
makedepends=('git' 'zip')
depends=('gnome-shell>=3.30')
source=("${pkgname}::git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$pkgname"
uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid"
install -dm755 "$destdir"
install -Dm644 extension.js metadata.json "$destdir"
}
|