summaryrefslogtreecommitdiff
path: root/testing/wl-gammarelay/APKBUILD
blob: 2d9d18a30dfa8cf86660a41f5b54be60386a452f (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wl-gammarelay
pkgver=0.1.0
pkgrel=7
pkgdesc="Control color temperature and brightness under Wayland via DBus"
url="https://github.com/jeremija/wl-gammarelay"
license="GPL-3.0"
arch="all"
makedepends="go wayland-dev"
source="https://github.com/jeremija/wl-gammarelay/archive/v$pkgver/wl-gammarelay-$pkgver.tar.gz"
options="!check" # no test suite

export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make -C protocol
	go build -ldflags "-X main.Version=$pkgver"
}

package() {
	install -Dm755 wl-gammarelay "$pkgdir"/usr/bin/wl-gammarelay
}

sha512sums="
170ddfcd52e3055803f365b0be7a1247b3afdbeed9993e0ef9a495bd3fec127075f3f324459beb5373eeeadb54e2eb28ff8b8e2e34e9b14e732d9b6690577602  wl-gammarelay-0.1.0.tar.gz
"