summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 173a10176f3e5dfab5a1ec4f67fc721f74a904be (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
# Maintainer: Sam Stuewe <halosghost at archlinux dot info>

pkgname=enlighten-git
pkgver=v0.9.1.r1.gf195a00
pkgrel=1

pkgdesc='A small tool to modify LCD backlight brightness'
url='https://github.com/HalosGhost/enlighten'
arch=('i686' 'x86_64')
license=('GPL3')

makedepends=('git' 'scdoc')

source=('git+https://github.com/HalosGhost/enlighten.git')
sha256sums=('SKIP')

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

prepare () {
    cd enlighten
    ./configure # --device=<see `ls /sys/class/backlight` for your device names>'
}

build () {
    cd enlighten
    make CONFIGURATION=release bin doc
}

package () {
    cd enlighten
    make CONFIGURATION=release DESTDIR="$pkgdir" PREFIX="/usr" install
}