aboutsummaryrefslogtreecommitdiffstats
path: root/community/redshift/APKBUILD
blob: 4504b5c4c9e916ef003b02cce15523f5902a526b (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: 7heo <7heo@mail.com>
pkgname=redshift
pkgver=1.12
pkgrel=0
pkgdesc="Adjusts the color temperature of your screen according to your surroundings"
url="http://jonls.dk/redshift/"
arch="all"
license="GPL-3.0"
makedepends="libxcb-dev libxxf86vm-dev libdrm-dev intltool"
subpackages="$pkgname-doc"
source="https://github.com/jonls/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-drm \
		--enable-randr \
		--enable-vidmode \
		--disable-silent-rules \
		--disable-nls \
	make
}

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

	install -Dm644 redshift.conf.sample \
		"$pkgdir"/usr/share/doc/$pkgname/examples/redshift.conf
	install -m644 ABOUT-NLS DESIGN NEWS README README-colorramp \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="225e222e5f2c55be4571094ccaf02a92e162dfc35fd0fe504084e21e358b888a72f9992f9f9edaf1d496eb673af74a0d825ae5cf6ef7f0f1ab51d32419722c32  redshift-1.12.tar.xz"