summaryrefslogblamecommitdiff
path: root/user/bluedevil/APKBUILD
blob: be3635ac259e863d3d70da989f066800deca1018 (plain) (tree)
1
2
3
4


                                                  
               












                                                                                  
                                                                                     
























                                                                                          
                                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=bluedevil
pkgver=5.18.4.1
pkgrel=0
pkgdesc="Bluetooth framework for KDE"
url="https://userbase.kde.org/Bluedevil"
arch="all"
license="GPL-2.0+ AND LGPL-2.0+ AND (LGPL-2.1-only OR LGPL-3.0-only) AND GPL-3.0+"
depends="kded shared-mime-info"
makedepends="bluez-qt-dev cmake extra-cmake-modules kauth-dev kcodecs-dev
	kcompletion-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev
	kded-dev kiconthemes-dev kio-dev kitemviews-dev kjobwidgets-dev
	knotifications-dev kpackage-dev kservice-dev kwidgetsaddons-dev
	kwindowsystem-dev kxmlgui-dev plasma-framework-dev qt5-qtbase-dev
	qt5-qtdeclarative-dev solid-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/plasma/${pkgver%.*}/bluedevil-$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="dbefd648e525b4dc15dad77748e27726bcdd4790d9a12b57cbcb878c45a8bba25d94e49f68fcf28fb77e41e95a26d0bfb00c1c7faf3983197ff500f462ae2c2d  bluedevil-5.18.4.1.tar.xz"