# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxdamage
pkgver=1.1.6
pkgrel=5
pkgdesc="X11 damaged region extension library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="xorgproto libx11-dev libxfixes-dev util-macros"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/libXdamage-$pkgver.tar.xz"
builddir="$srcdir"/libXdamage-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
624dcefa1c79064569df952892f7f1351dc19ad338ce73d1a57041e406cb3e18abe531bab352b93d1f0f5c9b5c6b2652cc84a8f1fbfcbba648343812695a8acb  libXdamage-1.1.6.tar.xz
"
