aboutsummaryrefslogtreecommitdiffstats
path: root/testing/redshift/APKBUILD
blob: 3cd205e850db1f2211bb4c04bb9430a8db2d5ea0 (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
51
# Maintainer: 7heo <7heo@mail.com>
pkgname=redshift
pkgver=1.10
pkgrel=0
pkgdesc="Adjusts the color temperature of your screen according to your surroundings"
url="http://jonls.dk/redshift/"
arch="all"
license="GPL3"
depends=""
depends_dev="libxcb-dev libxxf86vm-dev libdrm-dev"
makedepends="$depends_dev intltool"
install=
replaces=""
subpackages="$pkgname-doc"
source="https://github.com/jonls/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"

	local i=
	for i in $source; do
		case "$i" in
		*.patch)
			patch -p1 -i "$srcdir"/$i || return 1 ;;
		esac
	done
}

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

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

md5sums="3a5480b8dd5d28a877a0cb407619fd76  redshift-1.10.tar.xz"
sha256sums="5bc2e70aa414f42dafb45c6e06ea90157d7d4b298af48877144ff442639aeea6  redshift-1.10.tar.xz"
sha512sums="d84f79ed335ead47941fa0471ef6595ffcdee9f4544da579e4df5ce7dc6e9c286d679999f26683ebf4b397a5bb9847305612cf0843b5e711cad2a50a0741d5bf  redshift-1.10.tar.xz"