wok view openobex/receipt @ rev 25780
Add apultra & lzav
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 23 14:15:08 2024 +0000 (8 weeks ago) |
parents | a5e183d53960 |
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/sourceforge/$PACKAGE/$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 }