wok view fatcat/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (23 months ago)
parents
children 699eb9be2e93
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%/arch*}/releases 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 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 cp -a $install/usr/ $fs/
36 }