diff --git a/srcpkgs/qtox/template b/srcpkgs/qtox/template index 08ab8bb312d..8663afb5fcf 100644 --- a/srcpkgs/qtox/template +++ b/srcpkgs/qtox/template @@ -19,14 +19,12 @@ changelog="https://raw.githubusercontent.com/qTox/qTox/master/CHANGELOG.md" distfiles="https://github.com/qTox/qTox/archive/v${version}.tar.gz" checksum=b842e2e7cbfa356da32dd7afc7628d55ce35d046ed72a468b211ab9ef863c382 -case "$XBPS_TARGET_MACHINE" in - ppc64*) ;; - armv6*|ppc*) makedepends+=" libatomic-devel" ;; -esac +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi pre_configure() { - case "$XBPS_TARGET_MACHINE" in - ppc64*) ;; - armv6*|ppc*) sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt ;; - esac + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + sed -i 's/${ALL_LIBRARIES})/atomic \0/' CMakeLists.txt + fi }