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

pkgname=gnome-shell-extension-espresso-git
pkgver=v37.r18.g7d59a4b
pkgrel=1
pkgdesc="Prevent auto suspend and screensaver functions (forked from caffeine)"
arch=('any')
url="https://github.com/coadmunkee/gnome-shell-extension-espresso.git"
install=espresso.install
license=('GPL2')
depends=('gnome-shell')
makedepends=('git')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

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

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

	./update-locale.sh
	glib-compile-schemas \
		--strict \
		--targetdir=espresso@coadmunkee.github.com/schemas/ \
			espresso@coadmunkee.github.com/schemas
}

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

	install -dm755 "${pkgdir}/usr/share/gnome-shell/extensions"
	cp -a "espresso@coadmunkee.github.com" "${pkgdir}/usr/share/gnome-shell/extensions"
}