void-packages/srcpkgs/kwave/template

39 lines
1.6 KiB
Bash

# Template file for 'kwave'
pkgname=kwave
version=23.08.5
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules gettext kconfig kcoreaddons kdoctools
librsvg-utils pkg-config python3 qt5-host-tools qt5-qmake"
makedepends="alsa-lib-devel appstream-glib-devel audiofile-devel doxygen
fftw-devel id3lib-devel ImageMagick karchive-devel kcompletion-devel
kconfig-devel kconfigwidgets-devel kcoreaddons-devel kcrash-devel
kdbusaddons-devel kdoctools-devel ki18n-devel kiconthemes-devel kio-devel
kservice-devel ktexteditor-devel ktextwidgets-devel kxmlgui-devel libmad-devel
libogg-devel librsvg-devel libsamplerate-devel libvorbis-devel opus-devel
pulseaudio-devel qt5-multimedia-devel samurai"
depends="audiofile fftw hicolor-icon-theme id3lib lame libmad libsamplerate
opus twolame"
checkdepends="xvfb-run"
short_desc="Sound editor for KDE"
maintainer="Hervy Qurrotul Ainur Rozi <hervyqa@proton.me>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kwave"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#kwave"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=c6183a93e9e545265035c589ec7d059772507e493546d9b25117a520d2cfc408
post_patch() {
vsed -i doc/CMakeLists.txt -i cmake/KwaveHandbook.cmake \
-e '/${KDOCTOOLS_MEINPROC_EXECUTABLE}/d' \
-e 's/${MEINPROC_EXECUTABLE}/meinproc5/'
}
post_install() {
# svgz files are not loading as icons, svg files works
for f in "${DESTDIR}"/usr/share/icons/hicolor/scalable/{actions,apps}/*.svgz; do
mv "$f" "${f%z}.gz"
gzip -d "${f%z}.gz"
done
}