wok annotate bluez/receipt @ rev 25070

created recipe for alsa-utils-lang
author Hans-G?nter Theisgen
date Sat Jun 11 08:40:38 2022 +0100 (2022-06-11)
parents 35292b022843
children c228e4370f9d
rev   line source
pankso@4357 1 # SliTaz package receipt.
pankso@4357 2
pankso@4357 3 PACKAGE="bluez"
pascal@23835 4 VERSION="5.54"
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
pascal@24336 22 # What is the latest version available today?
pascal@24336 23 current_version()
pascal@24336 24 {
pascal@24336 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 27 }
pascal@24336 28
pankso@4357 29 # Rules to configure and make the package.
pankso@4357 30 compile_rules()
pankso@4357 31 {
pascal@14375 32 sed -i 's/NEED_USB/xx&/' tools/*.c
al@19278 33
Hans-G?nter@22554 34 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@22554 35
pascal@23835 36 # 5.54 unrecognised
Hans-G?nter@22554 37 # --enable-bccmd \
Hans-G?nter@22554 38 # --enable-dfutool \
Hans-G?nter@22554 39 # --enable-dund \
Hans-G?nter@22554 40 # --enable-hid2hci \
Hans-G?nter@22554 41 # --enable-hidd \
Hans-G?nter@22554 42 # --enable-pand \
Hans-G?nter@22554 43 # --enable-usb \
Hans-G?nter@22554 44 # --enable-wiimote \
Hans-G?nter@22554 45
Hans-G?nter@22554 46
Hans-G?nter@22554 47 ./configure \
Hans-G?nter@22554 48 --prefix=/usr \
Hans-G?nter@22554 49 --sysconfdir=/etc \
Hans-G?nter@22554 50 --localstatedir=/var \
Hans-G?nter@22554 51 --libexecdir=/lib \
Hans-G?nter@22554 52 --mandir=/usr/share/man \
Hans-G?nter@22554 53 --enable-cups \
Hans-G?nter@22554 54 --enable-library \
Hans-G?nter@22554 55 --enable-sap \
Hans-G?nter@22554 56 --enable-tools \
pascal@22849 57 --enable-deprecated \
Hans-G?nter@22554 58 --disable-systemd \
Hans-G?nter@22554 59 --disable-test \
pankso@4357 60 $CONFIGURE_ARGS &&
pankso@4357 61 make &&
slaxemulator@10990 62 make DESTDIR=$DESTDIR install
pankso@4357 63 }
pankso@4357 64
pankso@4357 65 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4357 66 genpkg_rules()
pankso@4357 67 {
Hans-G?nter@22554 68 mkdir -p $fs/lib
Hans-G?nter@22554 69 mkdir -p $fs/usr/lib
pascal@22850 70 mkdir -p $fs/etc/bluetooth
domcox@14369 71
Hans-G?nter@22554 72 cp -a $install/etc $fs
Hans-G?nter@22554 73 cp -a $install/lib/bluetooth $fs/lib
Hans-G?nter@22554 74 cp -a $install/lib/udev $fs/lib
Hans-G?nter@22554 75 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22554 76 # cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22554 77 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22554 78 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
Hans-G?nter@22554 79 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@22556 80 # cp -a $install/var $fs
Hans-G?nter@22554 81
Hans-G?nter@22554 82 #some extra tools and configuration files
Hans-G?nter@22554 83 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
pascal@22850 84 cp $src/src/main.conf $fs/etc/bluetooth
Hans-G?nter@22554 85 # cp $src/audio/audio.conf $fs/etc/bluetooth
pankso@4357 86 }
pascal@19884 87
pascal@19884 88 # Post message when installing.
pascal@19884 89 post_install()
pascal@19884 90 {
pascal@19884 91 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
pascal@19884 92 #!/bin/sh
pascal@19884 93
pascal@19885 94 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
pascal@19884 95 EOT
pascal@19884 96 chmod +x $1/usr/bin/bluepin
pascal@19884 97 }