dhcpcd-qt: unmark nocross

This commit is contained in:
Nathan Owens 2020-12-16 16:44:03 -06:00 committed by Érico Nogueira Rolim
parent 2da98b1105
commit 14911d4dbd

View file

@ -14,21 +14,22 @@ license="BSD-2-Clause"
homepage="http://roy.marples.name/projects/dhcpcd-ui"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-ui-${version}.tar.xz"
checksum=81d448f82c9aa88ff85e4bc3cead5e4c7f3ea08e57c713dff9996fb5ba2c42b0
nocross="https://api.travis-ci.org/v3/job/621373375/log.txt"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel qt5-host-tools"
fi
post_configure() {
sed -i src/dhcpcd-qt/Makefile \
vsed -i src/dhcpcd-qt/Makefile \
-e "s;^\(CC .*=\).*;\1 ${CC};" \
-e "s;^\(CXX .*=\).*;\1 ${CXX};" \
-e "s;g++ -;${CXX} -;" \
-e "s;^\(CFLAGS.*=.*\);& ${CFLAGS};" \
-e "s;^\(CXXFLAGS.*=.*\);& ${CXXFLAGS};" \
-e "s;^\(LFLAGS.*=.*\);& ${LDFLAGS};" \
-e "s;^\(LINK .*=\).*;\1 ${CXX};" \
-e "/STRIP/d"
-e "/STRIP/d" \
-e 's|^LIBS.*|LIBS = $(SUBLIBS) -L../libdhcpcd ../libdhcpcd/libdhcpcd.a -L"${XBPS_CROSS_BASE}/usr/lib" -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread|'
}
pre_install() {