void-packages/srcpkgs/squirrel/template

35 lines
831 B
Bash

# Template file for 'squirrel'
pkgname=squirrel
version=3.1
revision=1
build_style=cmake
short_desc="The Squirrel Programming Language"
maintainer="Wilson Birney <wpb@360scada.com>"
license="MIT"
homepage="http://www.squirrel-lang.org/"
distfiles="https://github.com/albertodemichelis/squirrel/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=51942b8638a97b673e34ecf3ca50304996fa99bbdbfa7fe93d9744e6769b2f95
depends="${pkgname}-libs>=${version}_${revision}"
post_install() {
vlicense COPYRIGHT
}
squirrel-libs_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
squirrel-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmkdir usr
vcopy include usr
vmove usr/lib/*.so
vmove usr/lib/*.a
}
}