zathura: fix cross

This commit is contained in:
lemmi 2017-12-31 12:20:23 +01:00
parent 19c799af14
commit e117022832

View file

@ -1,7 +1,7 @@
# Template file for 'zathura'
pkgname=zathura
version=0.3.8
revision=1
revision=2
build_style=gnu-makefile
# COLOR=0 to avoid "tput not found" spam in the build output
make_build_args="COLOR=0"
@ -15,6 +15,10 @@ short_desc="A highly customizable and functional document viewer"
distfiles="http://pwmt.org/projects/${pkgname}/download/${pkgname}-${version}.tar.gz"
checksum=46bf8558f7ff12efe11bf5d19e6e223aac97126061677199d0c3d53dfcbce537
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" glib-devel"
fi
pre_build() {
sed -i 's/^\(CFLAGS *+=\)/override \1/' config.mk
sed -i 's/^\(LDFLAGS *+=\)/override \1/' config.mk