wok-next annotate bluez/receipt @ rev 19936
mate-common: automake-1.15 support, mate-desktop, mate-icon-theme, mate-system-monitor: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 17:04:15 2017 +0200 (2017-10-15) |
parents | a5b865e166cd |
children | d43bf7aae921 |
rev | line source |
---|---|
al@19850 | 1 # SliTaz package receipt v2. |
pankso@4357 | 2 |
pankso@4357 | 3 PACKAGE="bluez" |
al@19850 | 4 VERSION="5.43" |
pankso@4357 | 5 CATEGORY="system-tools" |
al@19850 | 6 SHORT_DESC="Bluetooth protocol stack" |
pankso@4357 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@19278 | 9 WEB_SITE="http://www.bluez.org/" |
pankso@4357 | 10 |
al@19850 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19850 | 12 WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL" |
al@19850 | 13 |
pascal@14375 | 14 BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev pkg-config libusb-compat" |
al@19850 | 15 SPLIT="bluez-tools bluez-tools-experimental bluez bluez-dev" |
al@19850 | 16 |
al@19850 | 17 BUILD_DEPENDS="glib-dev dbus-dev eudev-dev libical-dev readline-dev" |
domcox@14369 | 18 |
pankso@4357 | 19 # Rules to configure and make the package. |
pankso@4357 | 20 compile_rules() |
pankso@4357 | 21 { |
al@19850 | 22 # http://www.linuxfromscratch.org/blfs/view/stable/general/bluez.html |
pankso@4357 | 23 ./configure \ |
pankso@4357 | 24 --sysconfdir=/etc \ |
pankso@4357 | 25 --localstatedir=/var \ |
al@19850 | 26 --enable-library \ |
al@19850 | 27 --disable-systemd \ |
al@19850 | 28 --enable-experimental \ |
pankso@4357 | 29 $CONFIGURE_ARGS && |
al@19850 | 30 make && make install || return 1 |
al@19850 | 31 |
al@19850 | 32 mkdir -p $install/usr/sbin |
al@19850 | 33 ln -svf ../libexec/bluetooth/bluetoothd $install/usr/sbin |
al@19850 | 34 |
al@19850 | 35 mkdir -p $install/etc/bluetooth |
al@19850 | 36 cp src/main.conf $install/etc/bluetooth |
al@19850 | 37 |
al@19850 | 38 docdir="$install/usr/share/doc/$PACKAGE-$VERSION" |
al@19850 | 39 mkdir -p $docdir |
al@19850 | 40 cp doc/*.txt $docdir |
al@19850 | 41 |
al@19850 | 42 cp $stuff/*.conf $install/etc/bluetooth/ |
pankso@4357 | 43 } |
pankso@4357 | 44 |
pankso@4357 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4357 | 46 genpkg_rules() |
pankso@4357 | 47 { |
al@19850 | 48 case $PACKAGE in |
al@19850 | 49 bluez-tools) |
al@19850 | 50 copy bccmd bluemoon ciptool hciattach hciconfig hcidump hcitool \ |
al@19850 | 51 hex2hcd l2ping l2test mpris-proxy rctest rfcomm sdptool |
al@19850 | 52 CAT="system-tools|tools" |
al@19850 | 53 ;; |
al@19850 | 54 bluez-tools-experimental) |
al@19850 | 55 copy bin/ |
al@19850 | 56 rm $fs/usr/bin/bluetoothctl $fs/usr/bin/btmon # -> main package |
al@19850 | 57 remove_already_packed |
al@19850 | 58 CAT="system-tools|experimental tools" |
al@19850 | 59 ;; |
al@19850 | 60 bluez) |
al@19850 | 61 copy @std |
al@19850 | 62 remove_already_packed |
al@19850 | 63 TAGS="bluetooth" |
al@19850 | 64 DEPENDS="dbus eudev glib libical ncurses readline linux-bluetooth" |
al@19850 | 65 ;; |
al@19850 | 66 *-dev) |
al@19850 | 67 copy @dev |
al@19850 | 68 ;; |
al@19850 | 69 esac |
pankso@4357 | 70 } |