summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb5d46be443cb106d45d201ea6732663edcb24b3 (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
# Maintainer:  Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: Fredrik Haikarainen <fredrik.haikarainen@gmail.com>

pkgname=light-git
pkgver=1.2.2.r2.g33f2316
pkgrel=1
pkgdesc='Program to easily change brightness on backlight-controllers.'
arch=('i686' 'x86_64')
url="https://github.com/haikarainen/light"
license=('GPL3')
makedepends=(git autoconf automake)
conflicts=('light')
provides=('light')
source=('git+https://github.com/haikarainen/light.git')
sha256sums=('SKIP')

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

build(){
  cd "$srcdir/light"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

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