summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbf58081d005767a8082632d5bb8c537d73cc314 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=gnome-shell-extension-screenshot-git
pkgver=r296.068bb6f
pkgrel=1
pkgdesc="Gnome Shell extension for making and uploading screenshots"
arch=('any')
url="https://github.com/OttoAllmendinger/gnome-shell-screenshot.git"
license=('MIT')
depends=('gnome-shell')
makedepends=('git' 'zip' 'unzip' 'eslint')
source=("${pkgname}::git+${url}")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"

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

prepare() {
	cd "${srcdir}/${pkgname}"

	make update_dependencies
}

package() {
	cd "${srcdir}/${pkgname}"

	_extid="gnome-shell-screenshot@ttll.de"
	_extpath="${pkgdir}/usr/share/gnome-shell/extensions/${_extid}"

	make EXTENSION_PATH="${_extpath}" install
}