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

builddir="$srcdir"/libXext-$pkgver

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

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

sha512sums="
fd7693b5698cc4f5e80002a2cd4bd88e5d52c755c19a0417ee73029bd65f9d77b0969e765a1febc4d8fce1ba5dfb7278717f47be742e33d8fc5eb941e769792e  libXext-1.3.6.tar.xz
"
