summaryrefslogblamecommitdiff
path: root/user/qastools/APKBUILD
blob: 0586a751d6a69cd02042258de1605016bb7f3d05 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             

                                         
                                         
          
             



                                                                      
                                  

                                                                                         

         







                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qastools
pkgver=0.22.0
pkgrel=0
pkgdesc="ALSA mixer and utilities for Qt"
url="https://gitlab.com/sebholt/qastools"
arch="all"
license="MIT"
depends="bash"
makedepends="alsa-lib-dev cmake eudev-dev qt5-qtbase-dev qt5-qtsvg-dev
	qt5-qttools-dev"
subpackages="$pkgname-doc $pkgname-lang"
langdir="/usr/share/qastools/l10n"
source="https://gitlab.com/sebholt/qastools/-/archive/v$pkgver/qastools-v$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-v$pkgver"

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

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="5f4c845df00e00236d61ad1009fc6aa529996e02a03aeb92211a12facf9bdce5e1626f4c97d96d88827dfe689bd961d1a2fd3f9164dca6947c08b4fc1d78483d  qastools-v0.22.0.tar.bz2"