wok-6.x diff obex-data-server/receipt @ rev 19893

Add obex-data-server
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 06 15:24:33 2017 +0200 (2017-04-06)
parents
children 6a62f4adde15
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/obex-data-server/receipt	Thu Apr 06 15:24:33 2017 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="obex-data-server"
     1.7 +VERSION="0.4.6"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="D-Bus service providing high-level OBEX functionality."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://tadas.dailyda.com/"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="$WEB_SITE/software/$TARBALL"
    1.15 +
    1.16 +DEPENDS="libusb dbus-glib bluez"
    1.17 +BUILD_DEPENDS="libusb-dev dbus-glib-dev bluez-dev openobex-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	sed -i 's/OBEX_FindInterfaces(\(.*\),.*)/OBEX_EnumerateInterfaces(\1)/' src/ods-obex.c
    1.23 +	./configure --prefix=/usr 
    1.24 +		--mandir=/usr/share/man \
    1.25 +		$CONFIGURE_ARGS &&
    1.26 +	make &&
    1.27 +	make DESTDIR=$DESTDIR install
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/share
    1.34 +	cp -a $install/etc $fs
    1.35 +	cp -a $install/usr/bin $fs/usr
    1.36 +	cp -a $install/usr/share/dbus-1 $fs/usr/share
    1.37 +}