void-packages/srcpkgs/sc-im/template
2017-02-22 09:59:42 +00:00

31 lines
965 B
Bash

# Template file for 'sc-im'
pkgname=sc-im
version=0.5.0
revision=2
build_wrksrc="src"
build_style=gnu-makefile
make_install_args="prefix=/usr"
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="4-clause-BSD"
homepage="https://github.com/andmarti1424/sc-im/"
distfiles="https://github.com/andmarti1424/${pkgname}/archive/v${version}.tar.gz"
checksum=d7a31c5225e02239e925b50b414d7e69d12bc3554f218621823782872ccc5e4d
post_extract() {
sed -i 's,<ncursesw/,<,g' src/*.[ch]
sed -i 's,ishiden,isHidden,g' src/xls.c
}
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
}