wok-6.x view bluez/receipt @ rev 22672
updated ecm and ecm-extras again (1.03 -> 1.06)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 17 14:46:11 2020 +0100 (2020-01-17) |
parents | 032fe999b66d |
children | c34ef09acb7c |
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 --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
64 cp -a $install/etc $fs
65 cp -a $install/lib/bluetooth $fs/lib
66 cp -a $install/lib/udev $fs/lib
67 cp -a $install/usr/bin $fs/usr
68 # cp -a $install/usr/sbin $fs/usr
69 cp -a $install/usr/lib/*.so* $fs/usr/lib
70 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
71 cp -a $install/usr/lib/cups $fs/usr/lib
72 # cp -a $install/var $fs
74 #some extra tools and configuration files
75 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
76 # cp $src/audio/audio.conf $fs/etc/bluetooth
77 }
79 # Post message when installing.
80 post_install()
81 {
82 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
83 #!/bin/sh
85 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
86 EOT
87 chmod +x $1/usr/bin/bluepin
88 }