summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c83d2cad3908573edca25db60a6109d8fa836ba (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gnome-shell-extension-windowoverlay-icons-git
pkgver=37.r0.gbf02525
pkgrel=1
pkgdesc="Adds application icons to the windows overview (in Activities menu)"
arch=('any')
url="https://github.com/sustmi/gnome-shell-extension-windowoverlay-icons"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git' 'zip')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/sustmi/gnome-shell-extension-windowoverlay-icons.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make schemas
	make locales
	make zip
}

package() {
	cd "$srcdir/${pkgname%-git}"
	_uuid='windowoverlay-icons@sustmidown.centrum.cz'

	install -d "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
	bsdtar xvf windowoverlay-icons.zip -C \
		"$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
}