summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bd2860684d6fc73fe0b61270c2e06c241abad97 (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
# Maintainer: Tony Lambiris <tony@criticalstack.com>

pkgname=gnome-shell-extension-miniview-git
pkgver=r37.a226f36
pkgrel=2
pkgdesc="GNOME Shell plugin that shows a preview window overlay"
arch=('any')
url="https://github.com/iamlemec/miniview"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
source=("${pkgname}::git+https://github.com/iamlemec/miniview.git")
sha256sums=('SKIP')

pkgver() {
	cd ${pkgname}

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd ${pkgname}

	_extid="miniview@thesecretaryofwar.com"
	_extpath="${pkgdir}/usr/share/gnome-shell/extensions/${_extid}"

	install -dm755 "${_extpath}"
	cp -a * "${_extpath}"
}