mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 03:42:37 +01:00
94 lines
2.4 KiB
Plaintext
94 lines
2.4 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=bluez
|
|
pkgver=4.101
|
|
pkgrel=2
|
|
pkgdesc="Tools for the Bluetooth protocol stack"
|
|
url="http://www.bluez.org/"
|
|
arch="all"
|
|
license="GPL2"
|
|
depends="consolekit dbus"
|
|
replaces="udev"
|
|
makedepends="dbus-dev gst-plugins-base-dev alsa-lib-dev libusb-compat-dev
|
|
consolekit-dev udev-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-alsa
|
|
$pkgname-cups $pkgname-gstreamer $pkgname-hid2hci"
|
|
source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2
|
|
bluetooth.initd
|
|
rfcomm.initd
|
|
rfcomm.confd
|
|
"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/share/man \
|
|
--enable-gstreamer \
|
|
--enable-alsa \
|
|
--enable-usb \
|
|
--enable-tools \
|
|
--enable-bccmd \
|
|
--enable-hid2hci \
|
|
--enable-dfutool \
|
|
--enable-hidd \
|
|
--enable-pand \
|
|
--enable-dund \
|
|
--enable-cups \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make install DESTDIR="$pkgdir" || return 1
|
|
rm "$pkgdir"/usr/lib/*/*.la \
|
|
"$pkgdir"/usr/lib/*.la || return 1
|
|
install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth
|
|
install -Dm755 "$srcdir"/rfcomm.initd "$pkgdir"/etc/init.d/rfcomm
|
|
install -Dm644 "$srcdir"/rfcomm.confd "$pkgdir"/etc/conf.d/rfcomm
|
|
install -Dm755 test/simple-agent "$pkgdir"/usr/bin/bluez-simple-agent
|
|
}
|
|
|
|
libs() {
|
|
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"/usr/share "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/share/alsa* "$subpkgdir"/usr/share/ || return 1
|
|
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/
|
|
}
|
|
|
|
gstreamer() {
|
|
pkgdesc="Bluez plugin for gstreamer"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/gstreamer* \
|
|
"$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
hid2hci() {
|
|
pkgdesc="Put HID proxying bluetooth HCI's into HCI mode"
|
|
replaces="bluez"
|
|
mkdir -p "$subpkgdir"
|
|
mv "$pkgdir"/lib "$subpkgdir"/
|
|
}
|
|
|
|
md5sums="902b390af95c6c5d6d1a17d94c8344ab bluez-4.101.tar.bz2
|
|
701636b72c4fb72b1d81a050471b130c bluetooth.initd
|
|
7672edb8e33c4495ee9febb9864feb10 rfcomm.initd
|
|
7f4bb093adb0f519c621f2ea68712f35 rfcomm.confd"
|