wok annotate 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
rev   line source
pascal@25031 1 # SliTaz package receipt.
pascal@25031 2
pascal@25031 3 PACKAGE="fatcat"
pascal@25031 4 VERSION="1.1.1"
pascal@25031 5 CATEGORY="base-system"
pascal@25031 6 SHORT_DESC="FAT filesystems explore, extract, repair, and forensic tool"
pascal@25031 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@25031 8 LICENSE="MIT"
pascal@25031 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25031 10 WEB_SITE="https://github.com/Gregwar/fatcat"
pascal@25031 11 WGET_URL="$WEB_SITE/releases/download/debian_$VERSION/$TARBALL"
pascal@25031 12
pascal@25031 13 DEPENDS="gcc-lib-base"
pascal@25031 14 BUILD_DEPENDS="cmake"
pascal@25031 15
pascal@25031 16 # What is the latest version available today?
pascal@25031 17 current_version()
pascal@25031 18 {
pascal@25031 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25031 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@25031 21 }
pascal@25031 22
pascal@25031 23 # Rules to configure and make the package.
pascal@25031 24 compile_rules()
pascal@25031 25 {
pascal@25031 26 mkdir build_linux
pascal@25031 27 cd build_linux
pascal@25031 28 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
pascal@25031 29 make DESTDIR=$DESTDIR install
pascal@25031 30 }
pascal@25031 31
pascal@25031 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@25031 33 genpkg_rules()
pascal@25031 34 {
pascal@25031 35 cp -a $install/usr/ $fs/
pascal@25031 36 }