wok-current view obex-data-server/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | 535c806240cc |
children | c15fedfb9582 |
line source
1 # SliTaz package receipt.
3 PACKAGE="obex-data-server"
4 VERSION="0.4.6"
5 CATEGORY="network"
6 SHORT_DESC="D-Bus service providing high-level OBEX functionality."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://wiki.muiline.com/obex-data-server"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://ftp.radix.pro/sources/packages/n/$PACKAGE/$TARBALL"
12 TAGS="bluetooth"
14 DEPENDS="libusb dbus-glib bluez"
15 BUILD_DEPENDS="libusb-dev dbus-glib-dev bluez-dev openobex-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/OBEX_FindInterfaces(\(.*\),.*)/OBEX_EnumerateInterfaces(\1)/' src/ods-obex.c
28 ./configure --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 cp -a $install/etc $fs
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/dbus-1 $fs/usr/share
42 }