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

prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="f124e85fb3cc70ed3536cb9db57ac93461bbb5df1a713bc6b67a5ea49122556c321781ca150df681502f6ccfb7305f290e131ad25ce9ccbff5af268df11c86fc  damageproto-1.2.1.tar.bz2"
