34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'cjs'
|
|
pkgname=cjs
|
|
version=5.8.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 mozjs102-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=04e7c10a0a4d88ba446e6fb4f4788f732984e0318d775c646634a8619dfff7d2
|
|
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
|
|
}
|
|
}
|