# Maintainer: Natanael Copa pkgname=libxtst pkgver=1.2.1 pkgrel=1 pkgdesc="X11 Testing -- Resource extension library" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= depends_dev="recordproto libx11-dev libxext-dev inputproto libxi-dev" makedepends="$depends_dev libtool autoconf automake util-macros" source="http://xorg.freedesktop.org/releases/individual/lib/libXtst-$pkgver.tar.bz2 0001-Use-_XEatDataWords-to-eat-data-in-error-cases.patch 0002-integer-overflow-in-XRecordGetContext-CVE-2013-2063.patch " _builddir="$srcdir"/libXtst-$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 \ --build=${CHOST} --host=${CHOST} make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="e8abc5c00c666f551cf26aa53819d592 libXtst-1.2.1.tar.bz2 ef5006c916511e087973d797a60aaee1 0001-Use-_XEatDataWords-to-eat-data-in-error-cases.patch 641e6194973b4d324f8278faa821b87a 0002-integer-overflow-in-XRecordGetContext-CVE-2013-2063.patch"