wok-6.x view bluez/receipt @ rev 23092
updated libpaper and libpaper-dev (1.1.24 -> 1.1.28)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 11 15:38:05 2020 +0100 (2020-03-11) |
parents | fa8eccc0015a |
children | 35292b022843 |
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
27 export LDFLAGS="$LDFLAGS -ltinfo"
29 # 5.52 unrecognised
30 # --enable-bccmd \
31 # --enable-dfutool \
32 # --enable-dund \
33 # --enable-hid2hci \
34 # --enable-hidd \
35 # --enable-pand \
36 # --enable-usb \
37 # --enable-wiimote \
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --localstatedir=/var \
44 --libexecdir=/lib \
45 --mandir=/usr/share/man \
46 --enable-cups \
47 --enable-library \
48 --enable-sap \
49 --enable-tools \
50 --enable-deprecated \
51 --disable-systemd \
52 --disable-test \
53 $CONFIGURE_ARGS &&
54 make &&
55 make DESTDIR=$DESTDIR install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/lib
62 mkdir -p $fs/usr/lib
63 mkdir -p $fs/etc/bluetooth
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/src/main.conf $fs/etc/bluetooth
78 # cp $src/audio/audio.conf $fs/etc/bluetooth
79 }
81 # Post message when installing.
82 post_install()
83 {
84 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
85 #!/bin/sh
87 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
88 EOT
89 chmod +x $1/usr/bin/bluepin
90 }