diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-12-27 18:04:00 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 18:18:58 +0100 |
commit | cb677004c1cf86d5031cd865c6cea049dd5a9abe (patch) | |
tree | bfaee8bbd4aef83b05196715af1cd5b6afda788c /community | |
parent | 6669804e79248fc65f8d16650f62bb9b2b500332 (diff) | |
download | aports-cb677004c1cf86d5031cd865c6cea049dd5a9abe.zip |
community/kwave: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/kwave/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/kwave/APKBUILD b/community/kwave/APKBUILD new file mode 100644 index 00000000000..4f0000003b5 --- /dev/null +++ b/community/kwave/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=kwave +pkgver=19.12.0 +pkgrel=0 +arch="all" +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="e0b06b43eb94030e15e3ced8c4aabea324960998657a129d19fc2c6a2da6c2aabde3466d71d3d1129190ce15d1ce36bb12cf774fa95d2c221f2279972e674281 kwave-19.12.0.tar.xz" |