summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5dd0b2dd79e8151535ee78d4fd1ad2d10c958075 (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=0
pkgrel=2

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

makedepends=('git' 'clang' 'python-docutils')

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
}

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