# Template file for 'sc-im'
pkgname=sc-im
version=0.6.0
revision=2
build_wrksrc="src"
build_style=gnu-makefile
make_build_args="prefix=/usr CFLAGS+=-DXLS LDLIBS+=-lxlsreader"
make_install_args="prefix=/usr"
hostmakedepends="bison pkg-config"
makedepends="libxls-devel libxml2-devel libzip-devel lua51-devel ncurses-devel"
depends="less"
short_desc="SpreadSheet Calculator (sc) Improvised"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="4-clause-BSD"
homepage="https://github.com/andmarti1424/sc-im/"
distfiles="https://github.com/andmarti1424/${pkgname}/archive/v${version}.tar.gz"
checksum=5da644d380ab3752de283b83cce18c3ba12b068d0762c44193c34367a0dcbc38

post_extract() {
	sed -i -e 's/lua51/lua5.1/g' \
		-e 's/^CFLAGS/override &/' \
		-e 's/^LDLIBS/override &/' src/Makefile
}
post_install() {
	vlicense ../LICENSE
}
