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