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