summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 353c852759c03c37f98d6e76d70309d40de4df62 (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
pkgname=gnome-shell-extension-media-controls
pkgver=29
pkgrel=1
pkgdesc="A media indicator for the GNOME shell"
arch=('any')
url="https://github.com/cliffniff/media-controls"
license=('MIT')
makedepends=()
depends=('gnome-shell')
provides=("${pkgname}")
options=(!strip !emptydirs)
source=("https://github.com/sakithb/media-controls/releases/latest/download/extension.zip")
sha256sums=('SKIP')

pkgver() {
 	cd "$srcdir"
 	cat metadata.json | grep '"version"' | sed 's/[^0-9]*//g'
}

package() {
	cd "$srcdir"
	rm extension.zip

	destdir="$pkgdir/usr/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/"
	mkdir -p "$destdir"
	install -dm755 "$destdir"

	cp -r * "$destdir/"
}