aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-bluetooth/APKBUILD
blob: 09f997203f121886a3cc4186f24e5225b318f294 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-bluetooth
pkgver=3.18.0
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 py-libxml2 gnome-doc-utils
	dbus-glib-dev gtk+3.0-dev itstool eudev-dev libcanberra-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="http://ftp.gnome.org/pub/GNOME/sources/gnome-bluetooth/${pkgver%.*}/gnome-bluetooth-$pkgver.tar.xz
	61-gnome-bluetooth-rfkill.rules
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	DATADIRNAME=share ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-desktop-update \
		--disable-icon-update \
		--disable-schemas-compile \
		--enable-introspection \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	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/
}

md5sums="040128a3c3cf6809381fb474a6297cec  gnome-bluetooth-3.18.0.tar.xz
9fb6c8dcb5a3de3a953bf2ef42063e6e  61-gnome-bluetooth-rfkill.rules"
sha256sums="f5c0d43226c4ec6a545dddb86181adadbc2b5cf720b640026003b9660fba0b8f  gnome-bluetooth-3.18.0.tar.xz
b8acb8ea2e7f3588575cffd8ea14ec50c8641f518f2ea899771a508b299ea474  61-gnome-bluetooth-rfkill.rules"
sha512sums="ffc7a954cf1dce1c32054750f77d751b4ca4c80a7f70d2bd614122d591b2e7ab73a6c414f3cf12cd64b694459861d7c11d2d931c207fcf409d4bd0db3a1ea2f0  gnome-bluetooth-3.18.0.tar.xz
80b7fd0bc3e0f82c8d2d609ffed634200e63f61d9a134445df8e8511756b7fb423d338a1d12e42b91c57243097beaa3d4662856ec0507fb19a29b6de7ee9e4de  61-gnome-bluetooth-rfkill.rules"