wok-current view ussp-push/receipt @ rev 25338
updated svkbd packages ( -> 0.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jul 24 10:22:05 2022 +0100 (2022-07-24) |
parents | 6eb2d62a9c1f |
children | a190bcfebf1e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ussp-push"
4 VERSION="0.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="a OBEX object pusher."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://xmailserver.org/ussp-push.html"
11 WGET_URL="http://xmailserver.org/$TARBALL"
12 TAGS="bluetooth"
14 DEPENDS="bluez openobex"
15 BUILD_DEPENDS="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 -e 's/OBEX_TRANS_CUST/OBEX_TRANS_CUSTOM/' \
28 -e '/^int bt_debug;$/r/dev/stdin' src/obex_main.c <<EOT
30 static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size)
31 {
32 int len, n;
34 if (uc == NULL || c == NULL)
35 return -1;
37 len = n = strlen((char *) c);
38 if (n*2+2 > size)
39 return -1;
41 uc[n*2+1] = uc[n*2] = 0;
42 while (n--) {
43 uc[n*2+1] = c[n];
44 uc[n*2] = 0;
45 }
47 return (len * 2) + 2;
48 }
49 EOT
50 sed -i 's/hci_remote_name/hci_read_remote_name/' src/obex_socket.c
51 ./configure --prefix=/usr \
52 $CONFIGURE_ARGS &&
53 make &&
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $install/usr/share/doc $fs/usr
61 cp -a $src/doc/ussp-push.html $install/usr/share/doc
62 cp -a $src/README $install/usr/share/doc
63 cp -a $install/usr/bin $fs/usr
64 }