APKBUILD 1.3 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=bluedevil
4
pkgver=5.17.4
5
pkgrel=0
Bart Ribbers's avatar
Bart Ribbers committed
6
pkgdesc="Integrate the Bluetooth technology within KDE workspace and applications"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8 9
url="https://www.kde.org/workspaces/plasmadesktop/"
license="GPL-2.0-or-later AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
10
depends="kded bluez"
11
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev kwidgetsaddons-dev kdbusaddons-dev knotifications-dev kwindowsystem-dev kiconthemes-dev plasma-framework-dev ki18n-dev kio-dev bluez-qt-dev kded-dev kded shared-mime-info"
12
source="https://download.kde.org/stable/plasma/$pkgver/bluedevil-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
13 14
subpackages="$pkgname-lang"

15 16 17 18 19 20
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
21
build() {
22 23
	cd "$builddir"/build
	cmake "$builddir" \
Bart Ribbers's avatar
Bart Ribbers committed
24 25 26 27 28 29 30
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
31
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
32 33 34 35
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
36
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
37 38 39
	DESTDIR="$pkgdir" make install
}

40
sha512sums="d3f64f340c4cbe29791407ceca28cc70176d0d8d888296d557c01400065d8c05dfd647bb22c104bfc58dc4288bd9e2ef0da1433aece5c8d82c71910d4c9873c9  bluedevil-5.17.4.tar.xz"