wok view bluez/receipt @ rev 22849

bluez: add v4 deprecated tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 16 18:25:39 2020 +0100 (2020-02-16)
parents f4c703ca05a2
children fa8eccc0015a
line source
1 # SliTaz package receipt.
3 PACKAGE="bluez"
4 VERSION="5.52"
5 CATEGORY="system-tools"
6 TAGS="bluetooth"
7 SHORT_DESC="Bluetooth protocol stack."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.bluez.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.kernel.org/pub/linux/bluetooth/$TARBALL"
14 #WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL"
16 DEPENDS="dbus dbus-python glib libical libusb-compat linux-bluetooth pygobject"
17 BUILD_DEPENDS="dbus-dev glib-dev libical-dev libusb-compat libusb-dev
18 pkg-config readline-dev"
20 CONFIG_FILES="/etc/bluetooth"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's/NEED_USB/xx&/' tools/*.c
26 sed -i 's/from gi.repo.*/try:\n &\nexcept ImportError:\n import gobject as GObject/' test/simple-agent
28 export LDFLAGS="$LDFLAGS -ltinfo"
30 # 5.52 unrecognised
31 # --enable-bccmd \
32 # --enable-dfutool \
33 # --enable-dund \
34 # --enable-hid2hci \
35 # --enable-hidd \
36 # --enable-pand \
37 # --enable-usb \
38 # --enable-wiimote \
41 ./configure \
42 --prefix=/usr \
43 --sysconfdir=/etc \
44 --localstatedir=/var \
45 --libexecdir=/lib \
46 --mandir=/usr/share/man \
47 --enable-cups \
48 --enable-library \
49 --enable-sap \
50 --enable-tools \
51 --enable-deprecated \
52 --disable-systemd \
53 --disable-test \
54 $CONFIGURE_ARGS &&
55 make &&
56 make DESTDIR=$DESTDIR install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/lib
63 mkdir -p $fs/usr/lib
65 cp -a $install/etc $fs
66 cp -a $install/lib/bluetooth $fs/lib
67 cp -a $install/lib/udev $fs/lib
68 cp -a $install/usr/bin $fs/usr
69 # cp -a $install/usr/sbin $fs/usr
70 cp -a $install/usr/lib/*.so* $fs/usr/lib
71 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
72 cp -a $install/usr/lib/cups $fs/usr/lib
73 # cp -a $install/var $fs
75 #some extra tools and configuration files
76 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
77 # cp $src/audio/audio.conf $fs/etc/bluetooth
78 }
80 # Post message when installing.
81 post_install()
82 {
83 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
84 #!/bin/sh
86 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
87 EOT
88 chmod +x $1/usr/bin/bluepin
89 }