summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b551d33600a3602812051192b373aefc604cffdc (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: Jianfeng Zhang <swordfeng123@gmail.com>

pkgname=gnome-shell-extension-topicons-redux-git
_projectName=TopIcons-Redux
pkgver=6+0+g5008e48
pkgrel=1
pkgdesc='TopIcons Redux is a fork of TopIcons Plus'
arch=('any')
url="https://gitlab.com/pop-planet/${_projectName}"
license=('GPL')
depends=('gnome-shell')
makedepends=('git')
provides=('gnome-shell-extension-topicons-redux')
conflicts=('gnome-shell-extension-topicons-redux')
groups=('gnome-shell-extensions')
source=("git+https://gitlab.com/pop-planet/${_projectName}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${_projectName}"
	git describe --tags --long | sed 's/^v//; s/-/+/g'
}

build() {
	cd "${_projectName}"
	make build
}

package() {
	cd "${_projectName}"
	local uuid=$(grep -Po '(?<="uuid": ")[^"]*' _build/metadata.json)
	local destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid"
	install -dm755 "$destdir"
	cp -r _build/* "$destdir"
}