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

pkgname=gnome-shell-extension-caffeine-plus-git
pkgver=r174.a6fba34
pkgrel=1
pkgdesc="Disable screensaver and auto suspend"
arch=('any')
url="https://github.com/tonylambiris/gnome-shell-extension-caffeine-plus.git"
install=caffeine-plus.install
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
source=("${pkgname}::git+https://github.com/tonylambiris/gnome-shell-extension-caffeine-plus.git")
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname}"

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

build() {
	cd "${pkgname}"

	/bin/sh -ex ./build.sh
}

package() {
	cd "${pkgname}"

	install -dm755 "${pkgdir}/usr/share/gnome-shell/extensions"
	cp -a "caffeine-plus@patapon.info" "${pkgdir}/usr/share/gnome-shell/extensions"
}