summaryrefslogblamecommitdiff
path: root/user/kmix/APKBUILD
blob: 9480f157c2e2b853f64283e6f27482700de8b207 (plain) (tree)
1
2
3
4


                                                  
              










                                                                               
                                        
                                                                                        

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                  
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kmix
pkgver=22.04.2
pkgrel=0
pkgdesc="KDE sound mixer"
url="https://www.kde.org/applications/multimedia/kmix/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kcompletion-dev ki18n-dev
	kconfig-dev kconfigwidgets-dev kcrash-dev kdbusaddons-dev kdoctools-dev
	kglobalaccel-dev kiconthemes-dev kinit-dev knotifications-dev solid-dev
	plasma-framework-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev
	alsa-lib-dev libcanberra-dev pulseaudio-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmix-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="89505ea03541aeeea493d153dadff8a23e4593802c1c77e9be3d819560eab9f7ede2fda280ba052d035911d773bfdbf3bb988393f181917cf2e856d90938e65b  kmix-22.04.2.tar.xz"