# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxext
pkgver=1.3.7
pkgrel=0
pkgdesc="X11 miscellaneous extensions library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends_dev="libxau-dev"
makedepends="
	$depends_dev
	libx11-dev
	util-macros
	xmlto
	xorgproto
	"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXext-$pkgver.tar.xz"
builddir="$srcdir"/libXext-$pkgver
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-static \
		--with-xmlto \
		--without-fop
	make
}

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

sha512sums="
09cd230da472e87e4fdbc9b0f83a9181cc44af04c06fa4a7d8aa405e0f8551d3ac3a4b379249c44d97e1025b60d1c52f8ca13817eed0206e2bf3d66a55d89701  libXext-1.3.7.tar.xz
"
