61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
![]() |
# Description: Bluetooth libraries and utilities
|
||
|
# URL: http://www.bluez.org/
|
||
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
||
|
# Depends on: dbus alsa-lib gstreamer libusb-compat
|
||
|
# Optional: pygobject dbus-python
|
||
|
|
||
|
name=bluez
|
||
|
version=4.101
|
||
|
release=1
|
||
|
source=(http://www.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz bluetoothd)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--sysconfdir=/etc \
|
||
|
--localstatedir=/var \
|
||
|
--libexecdir=/lib \
|
||
|
--mandir=/usr/man \
|
||
|
--enable-audio \
|
||
|
--enable-gstreamer \
|
||
|
--enable-usb \
|
||
|
--enable-tools \
|
||
|
--disable-test \
|
||
|
--enable-hidd \
|
||
|
--enable-hid2hci \
|
||
|
--enable-pand \
|
||
|
--enable-cups \
|
||
|
--enable-alsa \
|
||
|
--enable-bccmd \
|
||
|
--enable-dfutool \
|
||
|
--enable-dund
|
||
|
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
# install all available tools and test programs with man pages
|
||
|
shopt -s nullglob
|
||
|
for i in test/* tools/*; do
|
||
|
if [ -x $i ]; then
|
||
|
install -D -m 755 $i $PKG/usr/bin/bluez-${i#*/}
|
||
|
for j in $i.[1-8]; do
|
||
|
install -D -m 644 $j $PKG/usr/man/man${j##*.}/bluez-${j##*/}
|
||
|
done
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
# install init script
|
||
|
install -D -m 755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
|
||
|
|
||
|
# install config files
|
||
|
for i in audio input network serial; do
|
||
|
install -D -m 644 $i/$i.conf $PKG/etc/bluetooth/$i.conf
|
||
|
done
|
||
|
|
||
|
# this is because of the /usr/etc CRUX oddity
|
||
|
mkdir $PKG/usr/etc
|
||
|
mv $PKG/etc/dbus-1 $PKG/usr/etc
|
||
|
}
|