# Template file for 'seed'
pkgname=seed
version=3.8.1
revision=1
build_style=gnu-configure
configure_args="--disable-static"
makedepends="pkg-config intltool readline-devel gobject-introspection
 libsoup-devel webkitgtk-devel sqlite-devel dbus-glib-devel
 gir-freedesktop gnome-js-common"
short_desc="GObject JavaScript bindings for the webkit engine - Interpreter"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://live.gnome.org/Seed/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/3.8/$pkgname-$version.tar.xz"
checksum=80cb4db7fa6f6cf8d3e255fc45a81657388d458bc8bf23e4089e35f69eeaac32
long_desc="
 Seed is a library and interpreter, dynamically bridging
 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
 GNOME platform. Seed serves as something which enables you to write
 standalone applications in JavaScript, or easily enable your application
 to be extensible in JavaScript."

libseed-devel_package() {
	depends="webkitgtk-devel libgirepository-devel libglib-devel
		libseed-${version}_${revision}"
	short_desc="GObject JavaScript bindings for the webkit engine - Development"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gtk-doc
	}
}

libseed_package() {
	short_desc="GObject JavaScript bindings for the webkit engine - Runtime"
	pkg_install() {
		vmove "usr/lib/libseed*.so*"
		vmove "usr/lib/seed-gtk3/*.so"
		vmove usr/share/seed-gtk3
	}
}

seed_package() {
	depends="gir-freedesktop gnome-js-common"
	pkg_install() {
		vmove usr
	}
}
