void-packages/srcpkgs/sc-im/template

31 lines
924 B
Bash

# Template file for 'sc-im'
pkgname=sc-im
version=0.4.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=e9a6d0a87d4f9a657bb8b87bdde9141e42c8916fbb6879d07564ffb67302f68a
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
}