wok view ussp-push/receipt @ rev 21450
minetest: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 29 18:09:29 2019 +0200 (2019-04-29) |
parents | 709cc39a8b9f |
children | 934055de50e2 |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e 's/OBEX_TRANS_CUST/OBEX_TRANS_CUSTOM/' \
21 -e '/^int bt_debug;$/r/dev/stdin' src/obex_main.c <<EOT
23 static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size)
24 {
25 int len, n;
27 if (uc == NULL || c == NULL)
28 return -1;
30 len = n = strlen((char *) c);
31 if (n*2+2 > size)
32 return -1;
34 uc[n*2+1] = uc[n*2] = 0;
35 while (n--) {
36 uc[n*2+1] = c[n];
37 uc[n*2] = 0;
38 }
40 return (len * 2) + 2;
41 }
42 EOT
43 sed -i 's/hci_remote_name/hci_read_remote_name/' src/obex_socket.c
44 ./configure --prefix=/usr \
45 $CONFIGURE_ARGS &&
46 make &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $install/usr/share/doc $fs/usr
54 cp -a $src/doc/ussp-push.html $install/usr/share/doc
55 cp -a $src/README $install/usr/share/doc
56 cp -a $install/usr/bin $fs/usr
57 }