void-packages/srcpkgs/cjs/template

34 lines
1.0 KiB
Bash

# Template file for 'cjs'
pkgname=cjs
version=6.4.0
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dprofiler=disabled -Dinstalled_tests=false"
hostmakedepends="pkg-config glib-devel dbus xvfb-run gtk+3"
makedepends="readline-devel mozjs115-devel"
depends="gtk+3"
short_desc="Javascript for Cinnamon"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://github.com/linuxmint/cjs"
distfiles="https://github.com/linuxmint/cjs/archive/refs/tags/${version}.tar.gz"
checksum=55d730fdb331a9778a0d569e45c968ac68c8f218876e5d2d475cb5af21b6935a
make_check_pre="xvfb-run"
pre_configure() {
# The deleted lines in meson.build try to build and run a simple program,
# and that does not work when cross-compiling.
vsed -e '/Check if a minimal SpiderMonkey program compiles/,/^endif/d' -i meson.build
}
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
}
}