wok-next view bluez/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 2e9df1b30cc2
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bluez"
4 VERSION="5.43"
5 CATEGORY="system-tools"
6 SHORT_DESC="Bluetooth protocol stack"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.bluez.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL"
14 BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev libusb-compat"
15 SPLIT="bluez-tools bluez-tools-experimental bluez bluez-dev"
17 BUILD_DEPENDS="glib-dev dbus-dev eudev-dev libical-dev readline-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # http://www.linuxfromscratch.org/blfs/view/stable/general/bluez.html
23 ./configure \
24 --sysconfdir=/etc \
25 --localstatedir=/var \
26 --enable-library \
27 --disable-systemd \
28 --enable-experimental \
29 $CONFIGURE_ARGS &&
30 make && make install || return 1
32 mkdir -p $install/usr/sbin
33 ln -svf ../libexec/bluetooth/bluetoothd $install/usr/sbin
35 mkdir -p $install/etc/bluetooth
36 cp src/main.conf $install/etc/bluetooth
38 docdir="$install/usr/share/doc/$PACKAGE-$VERSION"
39 mkdir -p $docdir
40 cp doc/*.txt $docdir
42 cp $stuff/*.conf $install/etc/bluetooth/
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 bluez-tools)
50 copy bccmd bluemoon ciptool hciattach hciconfig hcidump hcitool \
51 hex2hcd l2ping l2test mpris-proxy rctest rfcomm sdptool
52 CAT="system-tools|tools"
53 ;;
54 bluez-tools-experimental)
55 copy bin/ @rm
56 rm $fs/usr/bin/bluetoothctl $fs/usr/bin/btmon # -> main package
57 CAT="system-tools|experimental tools"
58 ;;
59 bluez)
60 copy @std @rm
61 TAGS="bluetooth"
62 DEPENDS="dbus eudev glib libical ncurses readline linux-bluetooth"
63 ;;
64 *-dev)
65 copy @dev
66 ;;
67 esac
68 }