wok annotate fdupes/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 6d36c44e2de3
children 7a94a8614d8b
rev   line source
pascal@13814 1 # SliTaz package receipt.
pascal@13814 2
pascal@13814 3 PACKAGE="fdupes"
Hans-G?nter@22754 4 VERSION="2.0.0"
pascal@13814 5 CATEGORY="misc"
Hans-G?nter@20917 6 SHORT_DESC="Identify or delete duplicate files in specified directories."
pascal@13814 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="MIT"
pascal@20672 9 WEB_SITE="https://github.com/adrianlopezroche/fdupes"
Hans-G?nter@20917 10
pascal@13814 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22754 12 WGET_URL="https://github.com/adrianlopezroche/$PACKAGE/releases/download/$VERSION/$TARBALL"
pascal@13814 13
Hans-G?nter@22754 14 DEPENDS="ncurses pcre2"
Hans-G?nter@22754 15 BUILD_DEPENDS="ncurses-dev pcre2-dev"
pascal@13814 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@13814 23 # Rules to configure and make the package.
pascal@13814 24 compile_rules()
pascal@13814 25 {
Hans-G?nter@22754 26 ./configure \
Hans-G?nter@22754 27 --prefix=/usr \
Hans-G?nter@22754 28 $CONFIGURE_ARGS &&
pascal@13814 29 make
pascal@13814 30 }
pascal@13814 31
pascal@13814 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13814 33 genpkg_rules()
pascal@13814 34 {
pascal@13814 35 mkdir -p $fs/usr/bin
Hans-G?nter@22754 36 cp -a $src/fdupes $fs/usr/bin
pascal@13814 37 }