void-packages/srcpkgs/lynx/template
Jürgen Buchmüller 2019eb50aa lynx: fix for PIE
Patch configure to use the correct $CC_FOR_BUILD,
$CFLAGS_FOR_BUILD and $LDFLAGS_FOR_BUILD to build
host binaries (makeutcb).
2015-11-20 14:09:55 +01:00

24 lines
859 B
Bash

# Template build file for 'lynx'
pkgname=lynx
_version=2.8.8
_patch=2
version=$_version.$_patch
revision=10
wrksrc="${pkgname}${_version//./-}"
build_style=gnu-configure
configure_args="--enable-widec --with-zlib --with-bzlib --with-ssl --enable-ipv6"
short_desc="A text browser for the World Wide Web"
maintainer="Enno Boland <gottox@voidlinux.eu>"
makedepends="zlib-devel bzip2-devel ncurses-devel libressl-devel"
license="GPL"
homepage="http://lynx.isc.org"
distfiles="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_version}rel.${_patch}.tar.gz"
checksum=234c9dc77d4c4594ad6216d7df4d49eae3019a3880e602f39721b35b97fbc408
pre_configure() {
sed -i configure \
-e '/LDFLAGS="-L$cf_add_libdir $LDFLAGS"/d' \
-e 's;,$BUILD_CC;,$CC_FOR_BUILD;' \
-e 's;,$BUILD_CFLAGS;,$CFLAGS_FOR_BUILD;' \
-e 's;,$BUILD_LDFLAGS;,$LDFLAGS_FOR_BUILD;'
}