# Maintainer: Natanael Copa pkgname=libxinerama pkgver=1.1.3 pkgrel=0 pkgdesc="X11 Xinerama extension library" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= depends_dev="xineramaproto libx11-dev libxext-dev" makedepends="$depends_dev" source="http://www.x.org/releases/individual/lib/libXinerama-$pkgver.tar.bz2 " _builddir="$srcdir"/libXinerama-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="9336dc46ae3bf5f81c247f7131461efd libXinerama-1.1.3.tar.bz2" sha256sums="7a45699f1773095a3f821e491cbd5e10c887c5a5fce5d8d3fced15c2ff7698e2 libXinerama-1.1.3.tar.bz2" sha512sums="c9f059697c04fdc600d9e63873e924032d6cff456674ee28a885270c54722d96df0ef7a78432c2bdc0844241f115e00ad730c29d84681efc1c45a2e1acb3288c libXinerama-1.1.3.tar.bz2"