wok view bluez/receipt @ rev 24486

updated djvulibre and djvulibre-dev (3.5.27 -> 3.5.28)
author Hans-G?nter Theisgen
date Fri Feb 18 16:54:18 2022 +0100 (2022-02-18)
parents 35292b022843
children c228e4370f9d
line source
1 # SliTaz package receipt.
3 PACKAGE="bluez"
4 VERSION="5.54"
5 CATEGORY="system-tools"
6 TAGS="bluetooth"
7 SHORT_DESC="Bluetooth protocol stack."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.bluez.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.kernel.org/pub/linux/bluetooth/$TARBALL"
14 #WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL"
16 DEPENDS="dbus dbus-python glib libical libusb-compat linux-bluetooth pygobject"
17 BUILD_DEPENDS="dbus-dev glib-dev libical-dev libusb-compat libusb-dev
18 pkg-config readline-dev"
20 CONFIG_FILES="/etc/bluetooth"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/NEED_USB/xx&/' tools/*.c
34 export LDFLAGS="$LDFLAGS -ltinfo"
36 # 5.54 unrecognised
37 # --enable-bccmd \
38 # --enable-dfutool \
39 # --enable-dund \
40 # --enable-hid2hci \
41 # --enable-hidd \
42 # --enable-pand \
43 # --enable-usb \
44 # --enable-wiimote \
47 ./configure \
48 --prefix=/usr \
49 --sysconfdir=/etc \
50 --localstatedir=/var \
51 --libexecdir=/lib \
52 --mandir=/usr/share/man \
53 --enable-cups \
54 --enable-library \
55 --enable-sap \
56 --enable-tools \
57 --enable-deprecated \
58 --disable-systemd \
59 --disable-test \
60 $CONFIGURE_ARGS &&
61 make &&
62 make DESTDIR=$DESTDIR install
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/lib
69 mkdir -p $fs/usr/lib
70 mkdir -p $fs/etc/bluetooth
72 cp -a $install/etc $fs
73 cp -a $install/lib/bluetooth $fs/lib
74 cp -a $install/lib/udev $fs/lib
75 cp -a $install/usr/bin $fs/usr
76 # cp -a $install/usr/sbin $fs/usr
77 cp -a $install/usr/lib/*.so* $fs/usr/lib
78 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
79 cp -a $install/usr/lib/cups $fs/usr/lib
80 # cp -a $install/var $fs
82 #some extra tools and configuration files
83 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
84 cp $src/src/main.conf $fs/etc/bluetooth
85 # cp $src/audio/audio.conf $fs/etc/bluetooth
86 }
88 # Post message when installing.
89 post_install()
90 {
91 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
92 #!/bin/sh
94 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
95 EOT
96 chmod +x $1/usr/bin/bluepin
97 }