# Template file for 'giggle'
pkgname=giggle
version=0.6.1
revision=6
build_style=gnu-configure
hostmakedepends="pkg-config itstool intltool glib-devel"
makedepends="gtksourceview-devel>=3.8 vte3-devel"
depends="desktop-file-utils hicolor-icon-theme"
homepage="http://live.gnome.org/giggle"
short_desc="Git repository viewer"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/0.6/$pkgname-$version.tar.xz"
checksum=6c0b5c2b417217509bf88096447afa4af70fd33e8a6db5caa0aa86b44c01a5b8

# Required by glib-2.32.
CFLAGS="-lgmodule-2.0"

libgiggle_package() {
	short_desc+=" - Runtime libraries"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

giggle-devel_package() {
	depends="libgiggle>=${version}_${revision}"
	short_desc+=" - Development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
