clens: needs musl-legacy-compat for *-musl targets

This commit is contained in:
Jürgen Buchmüller 2020-07-24 12:52:48 +02:00
parent 2155d4f41b
commit bc2d3a7cb7
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ homepage="https://sourceforge.net/projects/clens/"
distfiles="$SOURCEFORGE_SITE/clens/clens-${version}.tar.gz"
checksum=064ac9954d38633e2cff6b696fd049dedc3e90b79acffbee1a87754bcf604267
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
do_build() {
sed -i 's,-Werror,,g' GNUmakefile
sed -i 's,u_char,unsigned char,g;s,u_int32_t,uint32_t,g;s,u_int,unsigned int,g;s,u_short,unsigned short,g' src/*.[ch]