# Maintainer: pkgname=qbs pkgver=2.1.1 pkgrel=0 pkgdesc="Cross platform Qt build tool" url="https://wiki.qt.io/Qbs" # 32-bit: fails to build arch="all !x86 !armhf !armv7" license="LGPL-3.0-or-later AND GPL-2.0-or-later" makedepends="clang cmake qt6-qtbase-dev qt6-qt5compat-dev samurai" source="https://download.qt.io/official_releases/qbs/$pkgver/qbs-src-$pkgver.tar.gz" builddir="$srcdir/qbs-src-$pkgver" options="!check" # todo build() { CC=clang CXX=clang++ \ cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_TESTS="$(want_check && echo ON || echo OFF)" \ -DQBS_LIBEXEC_INSTALL_DIR=lib/qbs cmake --build build } check() { ctest -j6 --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build rm -rf "$pkgdir"/usr/share/qbs/examples/ } sha512sums=" 32b5a33920484d2e72cd45e3309f980539813815ff39b4f5ca2269556bdb46d02e204732cf23e9e2b1a9afad258ab8e5bcfc612bd94f64d5dbeb1fcf3cc74e90 qbs-src-2.1.1.tar.gz "