# Template build file for 'glade3'.
pkgname=glade3
version=3.14.1
wrksrc=glade-${version}
revision=3
build_style=gnu-configure
configure_args="--disable-static"
makedepends="which pkg-config intltool gnome-doc-utils itstool gtk+3-devel
 libxml2-devel gobject-introspection python-devel pygobject-devel"
short_desc="An User Interface Designer for GTK+"
homepage="http://glade.gnome.org/"
license="GPL-2"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNOME_SITE}/glade/3.14/glade-$version.tar.xz"
checksum=8484b62c7a4579ea3e5d98200b397a1baf0b621c0b0c70242ee1dbbe449eae20
long_desc="
 Glade is a RAD tool to enable quick &amp; easy development of user interfaces
 for the GTK+ toolkit and the GNOME desktop environment.

 The user interfaces designed in Glade are saved as XML, and by using the
 GtkBuilder GTK+ object these can be loaded by applications dynamically as
 needed.

 By using GtkBuilder, Glade XML files can be used in numerous programming
 languages including C, C++, C#, Vala, Java, Perl, Python and others."

libgladeui3_package() {
	depends="pygobject"
	short_desc="GTK+ User Interface Build core library"
	pkg_install() {
		vmove "usr/lib/*.so*"
		vmove usr/lib/glade
		vmove usr/lib/girepository-1.0
	}
}

glade3-devel_package() {
	depends="gtk+3-devel libxml2-devel libgladeui3-${version}_${revision}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gir-1.0 
		vmove usr/share/gtk-doc
	}
}

glade3_package() {
	depends="hicolor-icon-theme desktop-file-utils"
	pkg_install() {
		vmove usr/bin
		vmove usr/share/help
		vmove usr/share/icons
		vmove usr/share/glade
		vmove usr/share/applications
		vmove usr/share/locale
	}
}
