wok-next view bluez/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | a5b865e166cd |
children | d43bf7aae921 |
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 pkg-config 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/
56 rm $fs/usr/bin/bluetoothctl $fs/usr/bin/btmon # -> main package
57 remove_already_packed
58 CAT="system-tools|experimental tools"
59 ;;
60 bluez)
61 copy @std
62 remove_already_packed
63 TAGS="bluetooth"
64 DEPENDS="dbus eudev glib libical ncurses readline linux-bluetooth"
65 ;;
66 *-dev)
67 copy @dev
68 ;;
69 esac
70 }