aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gobolight/APKBUILD
blob: ee4ef00d8ef6388ca48ce348214c7d5e1dad44b3 (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
37
38
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=gobolight
_pkgname=GoboLight
pkgver=0.1
pkgrel=0
pkgdesc="Ultra-minimal backlight tool"
url="https://github.com/gobolinux/GoboLight"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake"
options="suid !check"  # no tests provided
source="$pkgname-$pkgver.tar.gz::https://github.com/gobolinux/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	cd "$builddir"
	make install -j1 DESTDIR="$pkgdir"
}

sha512sums="1c990cf5dae617ebd230da2bcaa79fea652106051cd4584a69b33cb66a3bfa94f71623e2e30104c9a95958cc2417a20c8cf179709ba826216b57a1c7e2a77e7c  gobolight-0.1.tar.gz"