# Maintainer: Natanael Copa pkgname=libxrandr pkgver=1.3.2 pkgrel=1 pkgdesc="X11 RandR extension library" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= depends_dev="xproto randrproto libx11-dev libxext-dev libxrender-dev" makedepends="$depends_dev libtool autoconf automake util-macros" source="http://xorg.freedesktop.org/releases/individual/lib/libXrandr-$pkgver.tar.bz2 CVE-2013-1986-1.patch CVE-2013-1986-2.patch CVE-2013-1986-3.patch CVE-2013-1986-4.patch " _builddir="$srcdir"/libXrandr-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done libtoolize --force && aclocal && autoheader && autoconf \ && automake --add-missing } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="92473da2fccf5fac665be4fa4f2037fa libXrandr-1.3.2.tar.bz2 d5ef9db626af5fe41f2dc2bd707f0e6d CVE-2013-1986-1.patch 9ecaa507114e318be01e9b8d480ce91b CVE-2013-1986-2.patch a5b4094938415ac7e21e7a73b8f3e130 CVE-2013-1986-3.patch 03ee896864d2e5818de89f93e23070be CVE-2013-1986-4.patch"