kiwix-tools: fix build for XBPS_TARGET_NO_ATOMIC8 and armv7l

This commit is contained in:
John 2020-07-11 01:15:48 +02:00
parent a63e8fc6a1
commit df8bbc6b0a

View file

@ -13,6 +13,10 @@ changelog="https://github.com/kiwix/kiwix-tools/blob/${version}/Changelog"
distfiles="https://github.com/kiwix/kiwix-tools/archive/${version}.tar.gz"
checksum=86325ec31976d40357f08c520806cf223fa1b0a5edb02ad106c2a0d6746ca364
if [ "$XBPS_TARGET_NO_ATOMIC8" ] || [ "${XBPS_TARGET_MACHINE/-musl/}" = "armv7l" ]; then
makedepends+=" libatomic-devel"
fi
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" kiwix-lib-devel"
fi