# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=at-spi2-core pkgver=2.10.1 pkgrel=0 pkgdesc="Protocol definitions and daemon for D-Bus at-spi" url="http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus" arch="all" license="LGPLv2+" depends="" depends_dev="dbus-dev glib-dev libxtst-dev" makedepends="$depends_dev intltool gobject-introspection-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://download.gnome.org/sources/at-spi2-core/${pkgver%.*}/at-spi2-core-$pkgver.tar.xz" _builddir="$srcdir"/at-spi2-core-$pkgver prepare() { local i 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" DATADIRNAME="share" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="364d558c6fe6eb6b4adcf63dbd632f4b at-spi2-core-2.10.1.tar.xz" sha256sums="349b7ad5e6a8eebbf88aaefcb67a0f49b025dbcdf6ad646978faf2ca84650119 at-spi2-core-2.10.1.tar.xz" sha512sums="189d81768e64d5af7b44b53232f4c52e33fb11eeab67684ee4b1aeeed7089b44b63af1353b13e998d17e4f9056f1f0ee00ccabd5eee2976e2b87c165e76c3647 at-spi2-core-2.10.1.tar.xz"