wok-next diff bluez/receipt @ rev 19981
Add libvdpau
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 09:58:12 2017 +0300 (2017-10-18) |
parents | a5b865e166cd |
children | d43bf7aae921 |
line diff
1.1 --- a/bluez/receipt Tue Jul 05 19:21:55 2016 +0300 1.2 +++ b/bluez/receipt Wed Oct 18 09:58:12 2017 +0300 1.3 @@ -1,62 +1,70 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="bluez" 1.8 -VERSION="4.101" 1.9 +VERSION="5.43" 1.10 CATEGORY="system-tools" 1.11 -SHORT_DESC="Bluetooth protocol stack." 1.12 +SHORT_DESC="Bluetooth protocol stack" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="GPL2" 1.15 WEB_SITE="http://www.bluez.org/" 1.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -#WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL" 1.18 -WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL" 1.19 -TAGS="bluetooth" 1.20 1.21 -DEPENDS="linux-bluetooth alsa-lib glib dbus pygobject dbus-python" 1.22 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.23 +WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL" 1.24 + 1.25 BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev pkg-config libusb-compat" 1.26 +SPLIT="bluez-tools bluez-tools-experimental bluez bluez-dev" 1.27 + 1.28 +BUILD_DEPENDS="glib-dev dbus-dev eudev-dev libical-dev readline-dev" 1.29 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 - sed -i 's/NEED_USB/xx&/' tools/*.c 1.34 - 1.35 + # http://www.linuxfromscratch.org/blfs/view/stable/general/bluez.html 1.36 ./configure \ 1.37 - --prefix=/usr \ 1.38 --sysconfdir=/etc \ 1.39 --localstatedir=/var \ 1.40 - --libexecdir=/lib \ 1.41 - --mandir=/usr/share/man \ 1.42 - --enable-bccmd \ 1.43 - --enable-dfutool \ 1.44 - --enable-dund \ 1.45 - --enable-hid2hci \ 1.46 - --enable-hidd \ 1.47 - --enable-pand \ 1.48 - --enable-usb \ 1.49 - --enable-cups \ 1.50 - --enable-tools \ 1.51 - --enable-wiimote \ 1.52 - --disable-test \ 1.53 - --without-systemdunitdir \ 1.54 + --enable-library \ 1.55 + --disable-systemd \ 1.56 + --enable-experimental \ 1.57 $CONFIGURE_ARGS && 1.58 - make && 1.59 - make DESTDIR=$DESTDIR install 1.60 + make && make install || return 1 1.61 + 1.62 + mkdir -p $install/usr/sbin 1.63 + ln -svf ../libexec/bluetooth/bluetoothd $install/usr/sbin 1.64 + 1.65 + mkdir -p $install/etc/bluetooth 1.66 + cp src/main.conf $install/etc/bluetooth 1.67 + 1.68 + docdir="$install/usr/share/doc/$PACKAGE-$VERSION" 1.69 + mkdir -p $docdir 1.70 + cp doc/*.txt $docdir 1.71 + 1.72 + cp $stuff/*.conf $install/etc/bluetooth/ 1.73 } 1.74 1.75 # Rules to gen a SliTaz package suitable for Tazpkg. 1.76 genpkg_rules() 1.77 { 1.78 - mkdir -p $fs/usr/lib/alsa-lib 1.79 - cp -a $install/usr/bin $fs/usr 1.80 - cp -a $install/usr/sbin $fs/usr 1.81 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.82 - cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib 1.83 - cp -a $install/usr/lib/bluetooth $fs/usr/lib 1.84 - cp -a $install/usr/lib/cups $fs/usr/lib 1.85 - cp -a $install/etc $fs 1.86 - cp -a $install/var $fs 1.87 - 1.88 - #some extra tools and config files 1.89 - cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent 1.90 - cp $src/audio/audio.conf $fs/etc/bluetooth 1.91 + case $PACKAGE in 1.92 + bluez-tools) 1.93 + copy bccmd bluemoon ciptool hciattach hciconfig hcidump hcitool \ 1.94 + hex2hcd l2ping l2test mpris-proxy rctest rfcomm sdptool 1.95 + CAT="system-tools|tools" 1.96 + ;; 1.97 + bluez-tools-experimental) 1.98 + copy bin/ 1.99 + rm $fs/usr/bin/bluetoothctl $fs/usr/bin/btmon # -> main package 1.100 + remove_already_packed 1.101 + CAT="system-tools|experimental tools" 1.102 + ;; 1.103 + bluez) 1.104 + copy @std 1.105 + remove_already_packed 1.106 + TAGS="bluetooth" 1.107 + DEPENDS="dbus eudev glib libical ncurses readline linux-bluetooth" 1.108 + ;; 1.109 + *-dev) 1.110 + copy @dev 1.111 + ;; 1.112 + esac 1.113 }