wok-next view bluez/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bluez"
4 VERSION="5.54"
5 CATEGORY="system-tools"
6 SHORT_DESC="Bluetooth protocol stack"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.bluez.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/bluez.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL"
15 #BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev libusb-compat"
16 BUILD_DEPENDS="dbus-dev eudev-dev glib-dev libical-dev readline-dev"
17 SPLIT="$PACKAGE-tools $PACKAGE-tools-experimental $PACKAGE $PACKAGE-dev"
19 compile_rules()
20 {
21 ./configure \
22 --enable-library \
23 --disable-systemd \
24 --enable-experimental \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make install || return 1
30 mkdir -p $install/usr/sbin
31 ln -svf ../libexec/bluetooth/bluetoothd $install/usr/sbin
33 install -Dm644 src/main.conf $install/etc/bluetooth/main.conf
35 cook_pick_docs doc/*.txt
37 cp $stuff/*.conf $install/etc/bluetooth/
38 }
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 bluez-tools)
44 copy bccmd bluemoon ciptool hciattach hciconfig hcidump hcitool \
45 hex2hcd l2ping l2test mpris-proxy rctest rfcomm sdptool
46 CAT="system-tools|tools"
47 DEPENDS="bluez dbus glib"
48 ;;
49 bluez-tools-experimental)
50 copy bin/ @rm
51 rm $fs/usr/bin/bluetoothctl $fs/usr/bin/btmon # -> main package
52 CAT="system-tools|experimental tools"
53 DEPENDS="bluez dbus eudev glib readline"
54 ;;
55 bluez)
56 copy @std @rm
57 TAGS="bluetooth"
58 DEPENDS="dbus eudev glib libical linux-bluetooth readline"
59 ;;
60 *-dev)
61 copy @dev
62 ;;
63 esac
64 }