wok-current annotate pass/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | 9ad97542cf5c |
children | e1e1678c5265 |
rev | line source |
---|---|
pascal@18565 | 1 # SliTaz package receipt. |
pascal@18565 | 2 |
pascal@18565 | 3 PACKAGE="pass" |
Hans-G?nter@21661 | 4 VERSION="1.7.3" |
pascal@18565 | 5 CATEGORY="security" |
pascal@18565 | 6 SHORT_DESC="The standard unix password manager." |
pascal@18565 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18565 | 8 LICENSE="GPL2" |
Hans-G?nter@21661 | 9 WEB_SITE="https://www.passwordstore.org/" |
Hans-G?nter@21661 | 10 |
Hans-G?nter@21661 | 11 SOURCE="password-store" |
pascal@18565 | 12 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@18565 | 13 WGET_URL="http://git.zx2c4.com/$SOURCE/snapshot/$TARBALL" |
Hans-G?nter@21661 | 14 |
pascal@18565 | 15 SUGGESTED="git gnupg" |
pascal@18565 | 16 DEPENDS="bash" |
pascal@18565 | 17 |
pascal@24459 | 18 # What is the latest version available today? |
pascal@24459 | 19 current_version() |
pascal@24459 | 20 { |
pascal@24459 | 21 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \ |
pascal@24459 | 22 sed "/latest/d;/$SOURCE-[0-9]/!d;/zip/!d;s|.*$SOURCE-\\(.*\\).zip.*|\\1|" | sort -Vr | sed q |
pascal@24459 | 23 } |
pascal@24459 | 24 |
pascal@18565 | 25 # Rules to configure and make the package. |
pascal@18565 | 26 compile_rules() |
pascal@18565 | 27 { |
pascal@18565 | 28 make DESTDIR=$DESTDIR install |
pascal@18565 | 29 } |
pascal@18565 | 30 |
pascal@18565 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18565 | 32 genpkg_rules() |
pascal@18565 | 33 { |
pascal@18565 | 34 mkdir -p $fs/usr |
pascal@18565 | 35 cp -a $install/usr/bin $fs/usr |
pascal@18565 | 36 } |