aboutsummaryrefslogblamecommitdiffstats
path: root/community/kwave/APKBUILD
blob: 12f9586d95ede8c16e20e8bf87e26ccd008ae5c9 (plain) (tree)
1
2
3
4
5
6
7
8


                                                  
              
        


                                           


                                   




























                            
                       
                                                                                         


                                                      
 




                                         
                        
                                         


                                             

                                
                           


         
                



                                          
                                                              

 
                                                                                                                                                                   
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kwave
pkgver=20.12.1
pkgrel=0
# armhf blocked by extra-cmake-modules
# mips, mips64 and s390x blocked by kxmlgui
arch="all !armhf !mips !mips64 !s390x"
url="http://kwave.sourceforge.net/"
pkgdesc="A sound editor for KDE"
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	audiofile-dev
	extra-cmake-modules
	fftw-dev
	flac-dev
	imagemagick
	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
	kwidgetsaddons-dev
	kxmlgui-dev
	libsamplerate-dev
	libvorbis-dev
	opus-dev
	pulseaudio-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/kwave-$pkgver.tar.xz"
subpackages="$pkgname-libs $pkgname-doc $pkgname-lang"

build() {

	if [ "$CARCH" = s390x ]; then
		doc_opts="-DWITH_DOC=OFF"
	else
		doc_opts="-DWITH_DOC=ON"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DWITH_OSS=OFF \
		-DWITH_MP3=OFF \
		$doc_opts
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="4a9ca690c3000c76150fba20e3f777a96ce65fefb2be03778b477dd3ab96b8702e77eef2ff6fcd01b4d5b388f2f1ec8f21ac47d78690b315add276154aaacc26  kwave-20.12.1.tar.xz"