flacon: unbreak build on platfoms without 64-bit atomics

This commit is contained in:
q66 2020-06-17 21:53:02 +02:00
parent 01325842ac
commit 54626e4c9b

View file

@ -14,6 +14,14 @@ changelog="https://flacon.github.io/changelog/"
distfiles="https://github.com/Flacon/flacon/archive/v${version}.tar.gz"
checksum=3c073ad29cc91601b9ecd66058b644ed2b1c12f3c0a96cbaa9e0167baf7acf75
post_extract() {
# no support for 64-bit atomics on these platforms in qt
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -i 's/QAtomicInteger<quint64>/QAtomicInteger<quint32>/' \
converter/splitter.cpp
fi
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi