wok view bluez/receipt @ rev 20255

firefox, thunderbird: try to force i686
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 21:40:37 2018 +0100 (20 months ago)
parents 69faca221dde
children 86790a278e70
line source
1 # SliTaz package receipt.
3 PACKAGE="bluez"
4 VERSION="4.101"
5 CATEGORY="system-tools"
6 SHORT_DESC="Bluetooth protocol stack."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.bluez.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 #WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL"
12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL"
13 CONFIG_FILES="/etc/bluetooth"
14 TAGS="bluetooth"
16 DEPENDS="linux-bluetooth alsa-lib glib dbus pygobject dbus-python"
17 BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev pkg-config libusb-compat"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/NEED_USB/xx&/' tools/*.c
23 sed -i 's/from gi.repo.*/try:\n &\nexcept ImportError:\n import gobject as GObject/' test/simple-agent
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --libexecdir=/lib \
30 --mandir=/usr/share/man \
31 --enable-bccmd \
32 --enable-dfutool \
33 --enable-dund \
34 --enable-hid2hci \
35 --enable-hidd \
36 --enable-pand \
37 --enable-usb \
38 --enable-cups \
39 --enable-tools \
40 --enable-wiimote \
41 --enable-sap \
42 --disable-test \
43 --without-systemdunitdir \
44 $CONFIGURE_ARGS &&
45 make &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib/alsa-lib
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
57 cp -a $install/usr/lib/bluetooth $fs/usr/lib
58 cp -a $install/usr/lib/cups $fs/usr/lib
59 cp -a $install/etc $fs
60 cp -a $install/var $fs
62 #some extra tools and config files
63 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
64 cp $src/audio/audio.conf $fs/etc/bluetooth
65 }
67 # Post message when installing.
68 post_install()
69 {
70 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
71 #!/bin/sh
73 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
74 EOT
75 chmod +x $1/usr/bin/bluepin
76 }