# Maintainer: Antoni Aloy pkgname=pavucontrol-qt pkgver=1.3.0 pkgrel=0 pkgdesc="Pulseaudio mixer in Qt (port of pavucontrol)" url="https://github.com/lxqt/pavucontrol-qt" arch="all !armhf" # blocked by liblxqt-dev license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools liblxqt-dev qt5-qttools-dev pulseaudio-dev " options="!check" # No testsuite subpackages="$pkgname-lang" source="https://github.com/lxqt/pavucontrol-qt/releases/download/$pkgver/pavucontrol-qt-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --build build --target install } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/$pkgname/translations } sha512sums=" 64f954b103b6ffbb97a81a23489799a1fff71810f15f755b92e814a03d8bbe6351ba2a1c8179d60777cbbe60e5ee40cf0e04167cf1467a5b27c9b02142f7cb8c pavucontrol-qt-1.3.0.tar.xz "