# Maintainer: Natanael Copa pkgname=glade pkgver=3.18.2 pkgrel=0 pkgdesc="User Interface Designer for GTK+ and GNOME" url="http://glade.gnome.org/" arch="all" license="GPL" depends= makedepends="gtk+3.0-dev libxml2-dev itstool gtk-doc" install= subpackages="$pkgname-dev $pkgname-doc" source="http://ftp.gnome.org/pub/GNOME/sources/glade/${pkgver%.*}/glade-$pkgver.tar.xz " _builddir="$srcdir"/$pkgname-$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" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-compile-warnings=no \ --enable-gtk-doc \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } md5sums="ecc29cef2c94fa4baa0678c295a897f9 glade-3.18.2.tar.xz" sha256sums="a2fd77e64e8d6c4d6cbd7f365b5b3a4a06b04f749c90acbdf7a09538b2a021fc glade-3.18.2.tar.xz" sha512sums="5bf3ec211ccf84802307ccb8615df6c622a8c3132f247ec3b93c379608ae1c778ac7ca515a51b30769b7d7fe29525c11f0b513665cb4dea9b5b33ccf834b9b57 glade-3.18.2.tar.xz"