# Template file for 'cjs'
pkgname=cjs
version=3.8.0
revision=1
short_desc="Javascript for Cinnamon"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake autoconf-archive libtool gnome-common pkg-config
 gobject-introspection glib-devel"
makedepends="mozjs52-devel dbus-glib-devel readline-devel gobject-introspection"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.0-or-later"
homepage="http://developer.linuxmint.com/projects/cinnamon-projects.html/"
distfiles="https://github.com/linuxmint/cjs/archive/${version}.tar.gz"
checksum=9018ec1ffc0c2c81c9678a23e3e57db56251b4bbf6b2a10e79aa75e83ca86d66

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

do_check() {
	:
# TOTAL: 729
# PASS:  707
# SKIP:  14
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 5
}

cjs-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove "usr/lib/*.so"
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
