summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01acd4322e87a1a4ca3c8896e6e1edafcac5388b (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
#shellcheck shell=bash
# AUR Maintainer: Shadichy <shadichy@blisslabs.org>

pkgname=gnome-shell-extension-window-calls-extended-git
pkgver=r35.e9888df
pkgrel=1
pkgdesc="GNOME Extension for getting windows list in wayland"
arch=('any')
url="https://github.com/hseliger/window-calls-extended.git"
license=('LicenseRef-unknown')
depends=('gnome-shell')
makedepends=(
	'git'
	'jq'
)
provides=("${pkgname%-git}" 'gnome-shell-extension-window-calls')
conflicts=("${pkgname%-git}" 'gnome-shell-extension-window-calls')
replaces=("${pkgname%-git}" 'gnome-shell-extension-window-calls')
source=("window-calls::git+$url")
sha256sums=('SKIP')

pkgver() {
	cd window-calls
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
	cd window-calls
	gnome-extensions pack --force
}

package() {
	cd window-calls
	_uuid=$(jq -r .uuid metadata.json)

	install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}"
	bsdtar -xvf "${_uuid}.shell-extension.zip" -C \
		"$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner
}