aboutsummaryrefslogblamecommitdiffstats
path: root/community/modemmanager-qt/APKBUILD
blob: 0e29172682e6ebae4a471935da7dd43c2a63f295 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
             
        
                                              
                                      
                 

                                          








                           
               
         

                                        
                                                                                               

         

                                                   


                                             
                           


         
                


                                          
           
                                               
 
 
            
                                                                                                                                                               
 
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=modemmanager-qt
pkgver=5.98.0
pkgrel=0
pkgdesc="Qt wrapper for ModemManager DBus API"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="
	modemmanager-dev
	qt5-qtbase-dev
	"
makedepends="$depends_dev
	doxygen
	extra-cmake-modules
	graphviz-dev
	qt5-qttools-dev
	samurai
	"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # requires dbus running
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/modemmanager-qt-$pkgver.tar.xz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
780d9eecbacebaebdd4bfc5416391c37cfe7ab1adb89c665b8775e847b0856550d99930f9902165e0c60573d6e0658c7c51846715c55fea9ba47559b13ade129  modemmanager-qt-5.98.0.tar.xz
"