wok annotate bluez/receipt @ rev 23229
updated ncdu (1.14 -> 1.14.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 24 07:39:06 2020 +0100 (2020-03-24) |
parents | fa8eccc0015a |
children | 35292b022843 |
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 |
al@19278 | 26 |
Hans-G?nter@22554 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@22554 | 28 |
Hans-G?nter@22554 | 29 # 5.52 unrecognised |
Hans-G?nter@22554 | 30 # --enable-bccmd \ |
Hans-G?nter@22554 | 31 # --enable-dfutool \ |
Hans-G?nter@22554 | 32 # --enable-dund \ |
Hans-G?nter@22554 | 33 # --enable-hid2hci \ |
Hans-G?nter@22554 | 34 # --enable-hidd \ |
Hans-G?nter@22554 | 35 # --enable-pand \ |
Hans-G?nter@22554 | 36 # --enable-usb \ |
Hans-G?nter@22554 | 37 # --enable-wiimote \ |
Hans-G?nter@22554 | 38 |
Hans-G?nter@22554 | 39 |
Hans-G?nter@22554 | 40 ./configure \ |
Hans-G?nter@22554 | 41 --prefix=/usr \ |
Hans-G?nter@22554 | 42 --sysconfdir=/etc \ |
Hans-G?nter@22554 | 43 --localstatedir=/var \ |
Hans-G?nter@22554 | 44 --libexecdir=/lib \ |
Hans-G?nter@22554 | 45 --mandir=/usr/share/man \ |
Hans-G?nter@22554 | 46 --enable-cups \ |
Hans-G?nter@22554 | 47 --enable-library \ |
Hans-G?nter@22554 | 48 --enable-sap \ |
Hans-G?nter@22554 | 49 --enable-tools \ |
pascal@22849 | 50 --enable-deprecated \ |
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 |
pascal@22850 | 63 mkdir -p $fs/etc/bluetooth |
domcox@14369 | 64 |
Hans-G?nter@22554 | 65 cp -a $install/etc $fs |
Hans-G?nter@22554 | 66 cp -a $install/lib/bluetooth $fs/lib |
Hans-G?nter@22554 | 67 cp -a $install/lib/udev $fs/lib |
Hans-G?nter@22554 | 68 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22554 | 69 # cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22554 | 70 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22554 | 71 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib |
Hans-G?nter@22554 | 72 cp -a $install/usr/lib/cups $fs/usr/lib |
Hans-G?nter@22556 | 73 # cp -a $install/var $fs |
Hans-G?nter@22554 | 74 |
Hans-G?nter@22554 | 75 #some extra tools and configuration files |
Hans-G?nter@22554 | 76 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent |
pascal@22850 | 77 cp $src/src/main.conf $fs/etc/bluetooth |
Hans-G?nter@22554 | 78 # cp $src/audio/audio.conf $fs/etc/bluetooth |
pankso@4357 | 79 } |
pascal@19884 | 80 |
pascal@19884 | 81 # Post message when installing. |
pascal@19884 | 82 post_install() |
pascal@19884 | 83 { |
pascal@19884 | 84 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT |
pascal@19884 | 85 #!/bin/sh |
pascal@19884 | 86 |
pascal@19885 | 87 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))} |
pascal@19884 | 88 EOT |
pascal@19884 | 89 chmod +x $1/usr/bin/bluepin |
pascal@19884 | 90 } |