mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-12 20:22:05 +01:00
78 lines
1.9 KiB
Plaintext
78 lines
1.9 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=bluez
|
|
pkgver=4.64
|
|
pkgrel=1
|
|
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
|
|
bluetooth.initd
|
|
bluetooth.confd
|
|
"
|
|
|
|
_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"
|
|
install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth
|
|
install -Dm644 "$srcdir"/bluetooth.confd "$pkgdir"/etc/conf.d/bluetooth
|
|
}
|
|
|
|
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
|
|
66408fb89b05e7ce7e61c4c3c356d2c6 bluetooth.initd
|
|
a159d897a057f4675548327329c4cc22 bluetooth.confd"
|