APKBUILD 4.78 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bluez
Natanael Copa's avatar
Natanael Copa committed
3 4
pkgver=5.41
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Tools for the Bluetooth protocol stack"
url="http://www.bluez.org/"
7
arch="all"
Fabian Affolter's avatar
Fabian Affolter committed
8
license="GPL2+"
9
depends="consolekit dbus"
10
replaces="udev"
11
makedepends="dbus-dev libusb-compat-dev eudev-dev
Natanael Copa's avatar
Natanael Copa committed
12
	libical-dev readline-dev glib-dev linux-headers
Sören Tempel's avatar
Sören Tempel committed
13
	autoconf automake libtool"
14 15
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-cups
	$pkgname-hid2hci"
Fabian Affolter's avatar
Fabian Affolter committed
16
source="http://www.kernel.org/pub/linux/bluetooth/bluez-$pkgver.tar.xz
17 18 19
	bluetooth.initd
	rfcomm.initd
	rfcomm.confd
20 21 22 23
        001-bcm43xx-Add-bcm43xx-3wire-variant.patch
        002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
        003-Increase-firmware-load-timeout-to-30s.patch
        004-Move-the-43xx-firmware-into-lib-firmware.patch
24
	bluez-5.40-obexd_without_systemd-1.patch
25
	"
Natanael Copa's avatar
Natanael Copa committed
26

27
_builddir="$srcdir"/bluez-$pkgver
Natanael Copa's avatar
Natanael Copa committed
28 29
build() {
	cd "$_builddir"
Sören Tempel's avatar
Sören Tempel committed
30 31 32 33
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
34
		--sysconfdir=/etc \
Sören Tempel's avatar
Sören Tempel committed
35
		--mandir=/usr/share/man \
Natanael Copa's avatar
Natanael Copa committed
36
		--localstatedir=/var \
37 38 39
		--libexecdir=/usr/lib \
		--disable-systemd \
		--enable-library \
Natanael Copa's avatar
Natanael Copa committed
40 41 42 43 44 45
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
46
	make install DESTDIR="$pkgdir" || return 1
47 48
	install -D -m644 src/main.conf "$pkgdir"/etc/bluetooth/main.conf \
		|| return 1
Sören Tempel's avatar
Sören Tempel committed
49

50
	install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth
51 52
	install -Dm755 "$srcdir"/rfcomm.initd "$pkgdir"/etc/init.d/rfcomm
	install -Dm644 "$srcdir"/rfcomm.confd "$pkgdir"/etc/conf.d/rfcomm
Natanael Copa's avatar
Natanael Copa committed
53
	install -Dm755 test/simple-agent "$pkgdir"/usr/bin/bluez-simple-agent
Natanael Copa's avatar
Natanael Copa committed
54 55 56 57 58 59 60 61
}

cups() {
	pkgdesc="Bluez backend for CUPS"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/cups "$subpkgdir"/usr/lib/
}

62 63 64 65 66 67 68
hid2hci() {
	pkgdesc="Put HID proxying bluetooth HCI's into HCI mode"
	replaces="bluez"
	mkdir -p "$subpkgdir"
	mv "$pkgdir"/lib "$subpkgdir"/
}

Natanael Copa's avatar
Natanael Copa committed
69
md5sums="318341b2188698130adb73236ee69244  bluez-5.41.tar.xz
70 71
4ec3395eff42b3481a0a77f36ca57d0b  bluetooth.initd
f90b2cc8fe3f0e4bed64b01c0ba0205d  rfcomm.initd
72 73 74 75
7f4bb093adb0f519c621f2ea68712f35  rfcomm.confd
7b7ee266671efa85a7b4c7c58c1c25cd  001-bcm43xx-Add-bcm43xx-3wire-variant.patch
456c04933312ce638afb4fcb3d3e39c4  002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
1dae20b038ea7697bdbdfcb9429fd6f2  003-Increase-firmware-load-timeout-to-30s.patch
76 77
a54e9af322b150a2773edb639936bd82  004-Move-the-43xx-firmware-into-lib-firmware.patch
ed5071c4a89231f23cbb341f533ac1b6  bluez-5.40-obexd_without_systemd-1.patch"
Natanael Copa's avatar
Natanael Copa committed
78
sha256sums="df7dc4462494dad4e60a2943240d584f6e760235dca64f5f10eba46dbab7f5f0  bluez-5.41.tar.xz
79 80
04395bdcbf69aafea1d127204677c72a6bf42bde1e8f809d31472ec5fa75057d  bluetooth.initd
9407186d0a647af2228d5603a13cf7aaba5fac842c147aa46334c3d729b552d4  rfcomm.initd
81 82 83 84
672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08  rfcomm.confd
f93802235c344a1eeb43125bd7a995f49bd99cc10aca14a4cc79740a22de4909  001-bcm43xx-Add-bcm43xx-3wire-variant.patch
e872945550cee1913067c678714a2813c19696a8cc66078780e098af4dbd1bce  002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
166b45e8cbfe347d8ccea835274cbbd75bb53989b81121effa0bb8ff49921996  003-Increase-firmware-load-timeout-to-30s.patch
85 86
c8a26033e5eaffe61837a45851d4608d993924bd3ac1d0560aef96f324b6e205  004-Move-the-43xx-firmware-into-lib-firmware.patch
20fb46baa7aed312b5e223fa4bf605f9cff76170ea9fa3b50825c267d5b8c573  bluez-5.40-obexd_without_systemd-1.patch"
Natanael Copa's avatar
Natanael Copa committed
87
sha512sums="0cf96514362573a3c2cd500d427ea58373de0d1348ac43d61fff295ca5df8305668ef2f82913681779aa3506917aabf47983e07f47b4586573c8ad567a9863af  bluez-5.41.tar.xz
88 89
0a5c652effebe5f2fd968535b2d99e8b9b6983f847fd162f80e5965ade4b7bd12165d27b348506a08503d1bc8c2cf5c8265758ca1e9670dfb5e765edf121fd96  bluetooth.initd
8d7b7c8938a2316ce0a855e9bdf1ef8fcdf33d23f4011df828270a088b88b140a19c432e83fef15355d0829e3c86be05b63e7718fef88563254ea239b8dc12ac  rfcomm.initd
90 91 92 93
a70aa0dbbabe7e29ee81540a6f98bf191a850da55a28f678975635caf34b363cf4d461a801b3484120ee28fdd21240bd456a4f5d706262700924bd2e9a0972fb  rfcomm.confd
73202915fda01d420b2864da77b1c25af5a55c815e9be6546400a0940bfb6097d83322790bc22a80ec0fcd557144fdd1877e243a79285a7f040ff96ba3600b94  001-bcm43xx-Add-bcm43xx-3wire-variant.patch
d5fd1c962bd846eaa6fff879bab85f753eb367d514f82d133b5d3242e1da989af5eddd942c60a87d5b67783e060f91bfa0f74fb1e8e6699cdee6e5bbe6a431ea  002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
784e9644c8de4e2693e2eeed988a245608b8cb14e1fc0dff8795c60c527b2e8d0c87862cfbfd6b850b47ae80cdf993a5ed3f477078ea1068fd7374899c7a1a77  003-Increase-firmware-load-timeout-to-30s.patch
94 95
42ac04044a8c66e07487598b3a75ef52efc32999ebce4e7c63f6198e2f603f4a1442e74600e43a0938cb4f52d4db0298aa99050b18144b84990cda71748e9de5  004-Move-the-43xx-firmware-into-lib-firmware.patch
41ce7ccf78cca97563f0ef31e01dac6eb4484c24fe57be360b5e8de8c5bff5845e9d395766f891bd3f123788344456c88c9fc00cd1bb7c6a1dca89d09f19172b  bluez-5.40-obexd_without_systemd-1.patch"