# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kwave pkgver=19.12.1 pkgrel=0 arch="all !armhf" # armhf blocked by extra-cmake-modules url="http://kwave.sourceforge.net/" pkgdesc="A sound editor for KDE" license="GPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtmultimedia-dev karchive-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev kservice-dev ktextwidgets-dev kxmlgui-dev kwidgetsaddons-dev audiofile-dev libsamplerate-dev alsa-lib-dev pulseaudio-dev flac-dev opus-dev libvorbis-dev fftw-dev imagemagick" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/kwave-$pkgver.tar.xz" subpackages="$pkgname-libs $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build if [ "$CARCH" = s390x ]; then doc_opts="-DWITH_DOC=OFF" else doc_opts="-DWITH_DOC=ON" fi cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DWITH_OSS=OFF \ -DWITH_MP3=OFF \ $doc_opts make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="114619d52ffbd8edbfce80ddad7357c8ea8b66a07f75e80416eb2c8d12615313d22f0bd26bc55c0eaec2b07256fcc8af87faf6e80e3542b500c039de24fdf705 kwave-19.12.1.tar.xz"