wok view fatcat/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (9 months ago)
parents 6e5c8ce7fb15
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fatcat"
4 VERSION="1.1.1"
5 CATEGORY="base-system"
6 SHORT_DESC="FAT filesystems explore, extract, repair, and forensic tool"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/Gregwar/fatcat"
11 WGET_URL="$WEB_SITE/releases/download/debian_$VERSION/$TARBALL"
13 DEPENDS="gcc-lib-base"
14 BUILD_DEPENDS="cmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;s|debian_||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir build_linux
27 cd build_linux
28 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $install/usr/share/man/man1
36 cp $src/man/fatcat.1 $install/usr/share/man/man1
37 cp -a $src/docs $install/usr/share/doc
38 cp -a $install/usr/ $fs/
39 }