void-packages/srcpkgs/mujs/template

34 lines
925 B
Bash
Raw Normal View History

2022-09-08 14:50:55 +02:00
# Template file for 'mujs'
pkgname=mujs
version=1.2.0
revision=2
2022-09-08 14:50:55 +02:00
build_style=gnu-makefile
make_build_args="shell shared"
make_install_args="prefix=/usr install-static install-shared"
2022-09-08 14:50:55 +02:00
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"
2022-09-08 14:50:55 +02:00
post_install() {
mv ${DESTDIR}/usr/lib/libmujs.so ${DESTDIR}/usr/lib/libmujs.so.${version}
ln -s libmujs.so.${version} ${DESTDIR}/usr/lib/libmujs.so
2022-09-08 14:50:55 +02:00
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
}
}