summaryrefslogblamecommitdiff
path: root/user/pavucontrol-qt/APKBUILD
blob: 4f1851da78e96fd8827aa57e58a05f744ef22575 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
             

                                                    
                       
          
                                  

                  
                                                                            
                                
                                                                                                       





                                                                                          
                                  






                                                     
                                     



            
                            


                                      
                                                                                                                                                                           
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=pavucontrol-qt
pkgver=0.14.0
pkgrel=0
pkgdesc="Qt port of pavucontrol, a PulseAudio mixer"
url="https://lxqt.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="cmake pulseaudio-dev qt5-qtbase-dev liblxqt-dev qt5-qttools-dev
	lxqt-build-tools>=0.6.0"
source="https://github.com/lxqt/pavucontrol-qt/releases/download/$pkgver/pavucontrol-qt-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	mkdir -p build && cd build
	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
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="5ef934130255c49f5bbab3d725c938db2993379d97c299f01659aac4ead7930365120694e45cc761550573028a13a14132e0a73e96385e624ae8406c0de25d07  pavucontrol-qt-0.14.0.tar.xz"