# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfixes
pkgver=5.0.3
pkgrel=1
pkgdesc="X11 miscellaneous 'fixes' extension library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
options="!check"  # No test suite.
depends=
makedepends="fixesproto libx11-dev util-macros xextproto xproto"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXfixes-$pkgver.tar.bz2"

builddir="$srcdir"/libXfixes-$pkgver

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

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

md5sums="07e01e046a0215574f36a3aacb148be0  libXfixes-5.0.3.tar.bz2"
sha256sums="de1cd33aff226e08cefd0e6759341c2c8e8c9faf8ce9ac6ec38d43e287b22ad6  libXfixes-5.0.3.tar.bz2"
sha512sums="72d5ee496e5c0520c95ef6bbb52deff1ee4c29792f11aa17aeb25c8ec5eb992ca502de040c77ad95835d1b1432f315b6cb7a3308b434847c28b9c2c6f9d1ac10  libXfixes-5.0.3.tar.bz2"
