summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a442f2cb20720cf4927488a10a7afaec78803c3 (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: Michael Lass <bevan@bi-co.net>
# Contributor: Adria Arrufat <swiftscythe@gmail.com>

# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR

pkgname=gbacklight
pkgver=r5.6c053a2
pkgrel=1
_commit=6c053a2 # corresponds to former version 0.1 plus a README overhaul
pkgdesc="Graphical frontend to xbacklight for adjusting the display brightness"
arch=('i686' 'x86_64')
url="https://github.com/fetchinson/gbacklight"
license=("custom")
depends=('libxrandr' 'gtk2')
makedepends=('git')
source=("git+https://github.com/fetchinson/gbacklight.git#commit=${_commit}")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR=${pkgdir} install
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}