wok annotate openobex/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | 1a10044dd144 |
children | a5e183d53960 |
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@24061 | 18 current_version() |
pascal@24061 | 19 { |
pascal@24062 | 20 wget -O - $WEB_SITE/-/tags 2>/dev/null | \ |
pascal@24384 | 21 sed '/tar.gz/!d;/data/d;s|.*/mainline-\(.*\).tar.gz".*|\1|' | sort -Vr | sed q |
pascal@24061 | 22 } |
pascal@24061 | 23 |
pascal@19879 | 24 # Rules to configure and make the package. |
pascal@19879 | 25 compile_rules() |
pascal@19879 | 26 { |
pascal@19879 | 27 mkdir build |
pascal@19879 | 28 cd build |
Hans-G?nter@21635 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
Hans-G?nter@21635 | 30 make && |
Hans-G?nter@21635 | 31 make openobex-apps && |
pascal@19879 | 32 make DESTDIR=$DESTDIR install |
pascal@19879 | 33 } |
pascal@19879 | 34 |
pascal@19879 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19879 | 36 genpkg_rules() |
pascal@19879 | 37 { |
pascal@19879 | 38 mkdir -p $fs/usr/lib |
Hans-G?nter@21635 | 39 |
Hans-G?nter@21635 | 40 cp -a $install/lib $fs |
Hans-G?nter@21635 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21635 | 42 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21635 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@19879 | 44 } |