wok view openobex/receipt @ rev 25602

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 09:27:49 2023 +0000 (9 months ago)
parents fb22330086d8
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openobex"
4 VERSION="1.7.2"
5 CATEGORY="network"
6 TAGS="bluetooth"
7 SHORT_DESC="Object Exchange (OBEX) protocol."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://gitlab.com/openobex/mainline"
12 TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
15 DEPENDS="bluez libusb"
16 BUILD_DEPENDS="bluez-dev cmake libusb-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/-/tags 2>/dev/null | \
22 sed '/tar.gz/!d;/data/d;s|.*/mainline-\(.*\).tar.gz".*|\1|;/^tar.gz/d' | sort -Vr | sed 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 openobex-apps &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/lib $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 }