summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53cf3b2e0b973af5b3c56878235c8c8ffd8fce73 (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=2
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"
}