summaryrefslogtreecommitdiffstats
path: root/testing/redshift/APKBUILD
blob: 4718fb88bbe01f5e2d186ae8f8dc5d5d8e4d6fd5 (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
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: 7heo <7heo@mail.com>
pkgname=redshift
pkgver=1.9
pkgrel=0
pkgdesc="Adjusts the color temperature of your screen according to your surroundings."
url="http://jonls.dk/redshift/"
arch="all"
license="GLPv3"
depends=""
depends_dev="libxxf86vm-dev libdrm-dev"
makedepends="$depends_dev"
install=
replaces=""
subpackages="$pkgname-doc"
source="https://github.com/jonls/redshift/releases/download/v$pkgver/redshift-$pkgver.tar.xz
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-randr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="9640218cd9ba88f6d10b347b2277c415  redshift-1.9.tar.xz"
sha256sums="dbfe96e29b131e3e684528055b89c742be63b15aff38dd2f237b0ad8b9daba76  redshift-1.9.tar.xz"
sha512sums="16476e68c82ca583e4aa8e18da1e34b944a60f29fa516acfcb220d6c7d94d313a71ef5db049758753ab77e5da603876ed7635c29e64521c611b0179553371ad8  redshift-1.9.tar.xz"