sc-im: needs which in hostmakedepends + use vsed

This commit is contained in:
Jürgen Buchmüller 2020-05-12 23:08:37 +02:00
parent ab59794243
commit b3b9bee466

View file

@ -6,7 +6,7 @@ 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 gnuplot"
hostmakedepends="bison pkg-config gnuplot which"
makedepends="libxls-devel libxlsxwriter-devel libxml2-devel libzip-devel lua51-devel"
depends="less"
short_desc="SpreadSheet Calculator (sc) Improvised"
@ -17,7 +17,7 @@ distfiles="https://github.com/andmarti1424/${pkgname}/archive/v${version}.tar.gz
checksum=87225918cb6f52bbc068ee6b12eaf176c7c55ba9739b29ca08cb9b6699141cad
post_extract() {
sed -i -e 's/lua51/lua5.1/g' \
vsed -i -e 's/lua51/lua5.1/g' \
-e 's/^ *CFLAGS/override &/' \
-e 's/^ *LDLIBS/override &/' src/Makefile
}