aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-bluetooth/APKBUILD
blob: 810ddec1415e43c585770bb3e1621fbbbae49d7d (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
53
54
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-bluetooth
pkgver=3.28.2
pkgrel=0
pkgdesc="The GNOME Bluetooth Subsystem"
url="http://live.gnome.org/GnomeBluetooth"
arch="all"
license="GPL LGPL"
depends="hicolor-icon-theme bluez>=5"
makedepends="intltool gobject-introspection-dev libunique-dev
	libnotify-dev libxi-dev libxslt gnome-doc-utils
	dbus-glib-dev gtk+3.0-dev itstool eudev-dev libcanberra-dev
	meson"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	61-gnome-bluetooth-rfkill.rules"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare
	cd "$builddir"
	mkdir -p build
}

build() {
	cd "$builddir"/build
	meson \
		--prefix=/usr \
		--buildtype=release \
		--sysconfdir=/etc ..
	ninja
}

check() {
	cd "$builddir"/build
	ninja test
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" ninja install
	install -m644 -D "$srcdir/61-gnome-bluetooth-rfkill.rules" \
		"$pkgdir/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules"
}

libs() {
	default_libs
	replaces="gnome-bluetooth"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share/
}

sha512sums="03f66f8c5c195b10cf2c13dc93191b9f2f79adae099ddb8037ef1277731f37b8f0a42b603e8aacbe2fb108be6abf7a77a823d86d5fac62a42a53e3498d53d87e  gnome-bluetooth-3.28.2.tar.xz
80b7fd0bc3e0f82c8d2d609ffed634200e63f61d9a134445df8e8511756b7fb423d338a1d12e42b91c57243097beaa3d4662856ec0507fb19a29b6de7ee9e4de  61-gnome-bluetooth-rfkill.rules"