wok annotate vfsync/receipt @ rev 24992
Up sip (4.19.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 14 18:19:29 2022 +0000 (2022-05-14) |
parents | c0f288d8f56b |
children |
rev | line source |
---|---|
pascal@20001 | 1 # SliTaz package receipt. |
pascal@20001 | 2 |
pascal@20001 | 3 PACKAGE="vfsync" |
pascal@20001 | 4 VERSION="2017-05-21" |
pascal@20001 | 5 CATEGORY="network" |
pascal@20001 | 6 SHORT_DESC="A secure file synchronization system." |
pascal@20001 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20001 | 8 LICENSE="MIT" |
pascal@20001 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20001 | 10 WEB_SITE="https://vfsync.org/" |
pascal@20001 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@20001 | 12 |
pascal@20001 | 13 DEPENDS="libssl libcurl" |
pascal@20001 | 14 BUILD_DEPENDS="openssl-dev curl-dev" |
pascal@20001 | 15 |
pascal@24425 | 16 # What is the latest version available today? |
pascal@24425 | 17 current_version() |
pascal@24425 | 18 { |
pascal@24425 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 21 } |
pascal@24425 | 22 |
pascal@20001 | 23 # Rules to configure and make the package. |
pascal@20001 | 24 compile_rules() |
pascal@20001 | 25 { |
pascal@20001 | 26 make |
pascal@20001 | 27 } |
pascal@20001 | 28 |
pascal@20001 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20001 | 30 genpkg_rules() |
pascal@20001 | 31 { |
pascal@20001 | 32 mkdir -p $fs/usr/bin $install/usr/share/doc |
pascal@20001 | 33 cp -a $src/vfagent $fs/usr/bin |
pascal@20001 | 34 cp -a $src/vfsync $fs/usr/bin |
pascal@20001 | 35 cp -a $src/readme.txt $install/usr/share/doc |
pascal@20001 | 36 } |