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