wok diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fatcat/receipt Fri May 20 09:25:51 2022 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="fatcat" 1.7 +VERSION="1.1.1" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="FAT filesystems explore, extract, repair, and forensic tool" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://github.com/Gregwar/fatcat" 1.14 +WGET_URL="$WEB_SITE/releases/download/debian_$VERSION/$TARBALL" 1.15 + 1.16 +DEPENDS="gcc-lib-base" 1.17 +BUILD_DEPENDS="cmake" 1.18 + 1.19 +# What is the latest version available today? 1.20 +current_version() 1.21 +{ 1.22 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 1.23 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 1.24 +} 1.25 + 1.26 +# Rules to configure and make the package. 1.27 +compile_rules() 1.28 +{ 1.29 + mkdir build_linux 1.30 + cd build_linux 1.31 + cmake -DCMAKE_INSTALL_PREFIX=/usr .. && 1.32 + make DESTDIR=$DESTDIR install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + cp -a $install/usr/ $fs/ 1.39 +}