void-packages/srcpkgs/mujs/template

34 lines
925 B
Bash

# Template file for 'mujs'
pkgname=mujs
version=1.2.0
revision=2
build_style=gnu-makefile
make_build_args="shell shared"
make_install_args="prefix=/usr install-static install-shared"
makedepends="readline-devel"
short_desc="Embeddable JavaScript interpreter written in C"
maintainer="dkwo <npiazza@disroot.org>"
license="ISC"
homepage="https://mujs.com/"
distfiles="https://github.com/ccxvii/mujs/archive/refs/tags/${version}.tar.gz"
checksum=bbb74b96c168e7120f1aa2ce0a42026eba01cff14a9234108c91795f3a4c8cd0
CFLAGS="-DHAVE_READLINE"
post_install() {
mv ${DESTDIR}/usr/lib/libmujs.so ${DESTDIR}/usr/lib/libmujs.so.${version}
ln -s libmujs.so.${version} ${DESTDIR}/usr/lib/libmujs.so
vlicense COPYING
}
mujs-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}