wok view obexftp/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 72f2704d3ae0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="obexftp"
4 VERSION="0.24.2"
5 CATEGORY="network"
6 SHORT_DESC="OBEX Server and Client."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://triq.net/obex/"
10 TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
11 WGET_URL="$SF_MIRROR/openobex/$PACKAGE/$VERSION/$TARBALL"
12 TAGS="bluetooth"
14 DEPENDS="bluez openobex fuse2 expat"
15 BUILD_DEPENDS="cmake bluez-dev openobex-dev fuse2-dev expat-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/openobex/files/obexftp/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/obexftp/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build
29 cd build
30 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
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/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/bin $fs/usr
41 }