void-packages/srcpkgs/sc-im/template

30 lines
883 B
Bash

# Template file for 'sc-im'
pkgname=sc-im
version=0.3.0
revision=1
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="bison"
makedepends="libxls-devel libxml2-devel libzip-devel ncurses-devel"
depends="less"
short_desc="SpreadSheet Calculator (sc) Improvised"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://github.com/andmarti1424/sc-im/"
distfiles="https://github.com/andmarti1424/${pkgname}/archive/v${version}.tar.gz"
checksum=d721e8fb850ebe3c590311ab14e37e92b3340a19e41cdfd67798fdcfac6fae3b
post_extract() {
sed -i 's,<ncursesw/,<,g' src/*.[ch]
}
do_build() {
make -j1 CC="$CC" XLS=-DXLS XLSX=-DXLSX \
LINUX="-DLINUX $CFLAGS \
-I${XBPS_CROSS_BASE}/usr/include/libxml2 \
-I${XBPS_CROSS_BASE}/usr/include/libxls" \
LDLIBS="$LDFLAGS -lm -lncurses -lzip -lxml2 -lxlsreader"
}
post_install() {
vlicense ../LICENSE
}