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