# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xgamma
pkgver=1.0.7
pkgrel=1
pkgdesc="Alter a monitor's gamma correction through the X server"
url="https://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxxf86vm-dev"
source="https://www.x.org/releases/individual/app/xgamma-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="
9eeee9b537dcae9e4d153774eb632a6a5e8dd32bebadc9bbd897a773e5b56f76848f32a1699b8c921d3094760c42b5083365d853b89ab31fd85c7a0d46feeceb  xgamma-1.0.7.tar.xz
"
