summaryrefslogtreecommitdiff
path: root/community/gnome-bluetooth/APKBUILD
blob: ace6c009c86de0b195c30b66e5309bca01690a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-bluetooth
pkgver=42.5
pkgrel=1
pkgdesc="The GNOME Bluetooth Subsystem"
url="https://wiki.gnome.org/Projects/GnomeBluetooth"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
depends="
	bluez-obexd
	bluez>=5
	"
makedepends="
	eudev-dev
	glib-dev
	gobject-introspection-dev
	gsound-dev
	gtk4.0-dev
	libadwaita-dev
	libnotify-dev
	meson
	upower-dev
	"
checkdepends="py3-dbus py3-gobject3 py3-dbusmock"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/gnome-bluetooth/${pkgver%.*}/gnome-bluetooth-$pkgver.tar.xz
	61-gnome-bluetooth-rfkill.rules"

if [ "$CARCH" = "armhf" ]; then
	options="!check"; # tests fail on armhf
fi

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -m644 -D "$srcdir/61-gnome-bluetooth-rfkill.rules" \
		"$pkgdir/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules"
}

sha512sums="
0606b1a6053bc03568a492b4f000154e9a12ef9e9f7222837ae26635c446a0dc14f92ed2ca7bb2a262c4d87f369c05f6e0e75593abc45f513785197319848967  gnome-bluetooth-42.5.tar.xz
68ea6502a469d800e92d8984984cfddfa66e7bf8a0252d52a2338843d183680c84aa7ec6c4c7d14a250515b34b71d89364480c809743ba9e7ef30473b8ebb5a8  61-gnome-bluetooth-rfkill.rules
"