From ef24e15982c9fee6a8c2985de8d602c8ca5ecc3e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 18 May 2010 09:14:15 +0000 Subject: testing/bluez: new aport Tools for the Bluetooth protocol stack http://www.bluez.org/ --- testing/bluez/APKBUILD | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 testing/bluez/APKBUILD (limited to 'testing') diff --git a/testing/bluez/APKBUILD b/testing/bluez/APKBUILD new file mode 100644 index 000000000..32c9ec976 --- /dev/null +++ b/testing/bluez/APKBUILD @@ -0,0 +1,70 @@ +# Maintainer: Natanael Copa +pkgname=bluez +pkgver=4.64 +pkgrel=0 +pkgdesc="Tools for the Bluetooth protocol stack" +url="http://www.bluez.org/" +license="GPL2" +depends= +makedepends="dbus-dev gstreamer-dev alsa-lib-dev libusb-dev libnl-dev" +subpackages="$pkgname-dev $pkgname-doc libbluetooth $pkgname-alsa $pkgname-cups + $pkgname-netlink" +source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/lib \ + --mandir=/usr/share/man \ + --enable-gstreamer \ + --enable-alsa \ + --enable-usb \ + --enable-netlink \ + --enable-tools \ + --enable-bccmd \ + --enable-hid2hci \ + --enable-dfutool \ + --enable-hidd \ + --enable-pand \ + --enable-dund \ + --enable-cups \ + --enable-configfiles \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" +} + +libbluetooth() { + pkgdesc="Libraries for Bluetooth protocol stack" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libbluetooth.so.* "$subpkgdir"/usr/lib/ +} + +alsa() { + pkgdesc="Bluez plugin for ALSA" + mkdir -p "$subpkgdir"/etc "$subpkgdir"/usr/lib + mv "$pkgdir"/etc/alsa* "$subpkgdir"/etc/ + mv "$pkgdir"/usr/lib/alsa* "$subpkgdir"/usr/lib/ +} + +cups() { + pkgdesc="Bluez backend for CUPS" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/cups "$subpkgdir"/usr/lib/ +} + +netlink() { + pkgdesc="Bluez netlink plugin" + mkdir -p "$subpkgdir"/usr/lib/bluetooth/plugins + mv "$pkgdir"/usr/lib/bluetooth/plugins/netlink.so \ + "$subpkgdir"/usr/lib/bluetooth/plugins +} + +md5sums="d6e60bad937fe72b0bc77e327ee470b0 bluez-4.64.tar.bz2" -- cgit v1.2.3