# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'randrproto'
setvar pkgver = '1.5.0'
setvar pkgrel = '2'
setvar pkgdesc = ""X11 RandR extension wire protocol""
setvar url = ""http://xorg.freedesktop.org/""
setvar arch = ""noarch""
setvar license = ""custom""
setvar depends = """"
setvar makedepends = ""util-macros""
setvar options = ""!check""  # No test suite
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://www.x.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2""

setvar builddir = ""$srcdir/$pkgname-$pkgver""

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
setvar md5sums = ""a46765c8dcacb7114c821baf0df1e797  randrproto-1.5.0.tar.bz2""
setvar sha256sums = ""4c675533e79cd730997d232c8894b6692174dce58d3e207021b8f860be498468  randrproto-1.5.0.tar.bz2""
setvar sha512sums = ""5c56f6acfe3a9da5ffda45e4af2da5081a5116d53f4d2dafe399eae168656727927ca0fb4c29fc6583e87709ac83b025ae206fba9356ebf9e26d3ff545da57f4  randrproto-1.5.0.tar.bz2""