void-packages/srcpkgs/clac/template

22 lines
611 B
Bash

# Template file for 'clac'
pkgname=clac
version=0.3.1
revision=1
build_style=gnu-makefile
short_desc="Interactive command line, stack-based calculator"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="2-clause-BSD"
homepage="https://github.com/soveran/clac"
distfiles="https://github.com/soveran/${pkgname}/archive/${version}.tar.gz"
checksum=38cf86f99959d2223f052acfd9e0fecb402a137ebf859a9c64a541b15396e32b
do_build() {
${CC} ${CFLAGS} -o clac -I deps/sds -I deps/linenoise \
clac.c deps/sds/sds.c deps/linenoise/linenoise.c ${LDFLAGS} -lm
}
do_install() {
vbin clac
vman clac.1
vlicense LICENSE
}