aboutsummaryrefslogtreecommitdiffstats
path: root/testing/light/APKBUILD
blob: f6958f1653bedb9af4e976b1832ad7e481ee25e9 (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
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Eivind Uggedal <eu@eju.no>
pkgname=light
pkgver=1.2.1
pkgrel=0
pkgdesc="A program to control backlights and other hardware lights"
url="http://haikarainen.github.io/light/"
arch="all"
license="GPL-3.0-or-later"
options="!check"  # no test suite
makedepends="autoconf automake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/haikarainen/light/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-udev=/lib/udev/rules.d
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="008ddce57fcf48538127ef8b2a04bbe815b8f2b96ba4d7cbaa386d0d688951ed06c464119a9624e2bb78f274a0899c56cd0a868de64e87b812e55f1556f8b52a  light-1.2.1.tar.gz"