void-packages/srcpkgs/cjs/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

29 lines
776 B
Bash

# Template file for 'cjs'
pkgname=cjs
version=2.4.1
revision=1
short_desc="Javascript for Cinnamon"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libtool gnome-common pkg-config gobject-introspection git glib-devel"
makedepends="mozjs24-devel dbus-glib-devel readline-devel"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://cinnamon.linuxmint.com/"
do_fetch() {
git clone -b ${version} git://github.com/linuxmint/${pkgname} ${pkgname}-${version}
}
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
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
}
}