# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xbacklight
pkgver=1.2.1
pkgrel=0
pkgdesc="Sets backlight level using the RandR 1.2 BACKLIGHT output property"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxrandr-dev xcb-util-wm-dev"
source="http://www.x.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

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

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

md5sums="0066f23f69ca3ef62dcaeb74a87fdc48  xbacklight-1.2.1.tar.bz2"
sha256sums="17f6cf51a35eaa918abec36b7871d28b712c169312e22a0eaf1ffe8d6468362b  xbacklight-1.2.1.tar.bz2"
sha512sums="9a0afebea2fe155ab7d1ad00ef27566daeb7dc4fd47523511f1b8e8ac30977f938a08783bc0c7443fe92ebff1c17c68c78d44db08b32768d7831128130e0637d  xbacklight-1.2.1.tar.bz2"
