# Maintainer: Natanael Copa pkgname=glade pkgver=3.18.3 pkgrel=2 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 paxctl" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" 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" DATADIRNAME=share install || return 1 paxctl -c -r "$pkgdir"/usr/bin/glade find "$pkgdir" -name '*.la' -delete } md5sums="6852d6286683728e0ea40ca9b5d2416f glade-3.18.3.tar.xz" sha256sums="ecdbce46e7fbfecd463be840b94fbf54d83723b3ebe075414cfd225ddab66452 glade-3.18.3.tar.xz" sha512sums="6e98d6ba98118fde4066f983024818528ac8c82d176896e2c5c62a19094377df4bf4c6b4edd028cd72bf8744c807c28a930e467f2a23670537b02af327b683f8 glade-3.18.3.tar.xz"