summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03bf11ce3837a1d77038635aed1402c3e2a2dacd (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
# Maintainer: Fredrik Haikarainen <fredrik.haikarainen@gmail.com>
pkgname=light-git
pkgver=v0.9.r1.g8dfe104
pkgrel=1
pkgdesc='Program to easily change brightness on backlight-controllers.'
arch=('any')
url="https://github.com/haikarainen/light"
license=('GPL3')
makedepends=('git')
conflicts=('lightscript' 'light')
provides=('lightscript' 'light')
replaces=('lightscript')
source=('git+https://github.com/haikarainen/light.git')
md5sums=('SKIP')

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

build(){
  cd "$srcdir/light"
  make
}

package(){
  cd "$srcdir/light"
  make DESTDIR="$pkgdir/" install
}