# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxrender
pkgver=0.9.12
pkgrel=0
pkgdesc="X Rendering Extension client library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc"
options="!check"  # No test suite.
makedepends="xorgproto libx11-dev util-macros"
source="https://www.x.org/releases/individual/lib/libXrender-$pkgver.tar.xz"
builddir="$srcdir"/libXrender-$pkgver

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

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

sha512sums="
3d24a6877b500608e3e2a393532a99d4fd54fc343375d8fb51dfbb1b50cedf002c7722f771cf7776f93cb6e0421ca5966ce45435cb402d5f12a398f9ea743474  libXrender-0.9.12.tar.xz
"
