wok annotate cromfs/receipt @ rev 25063

nfs-utils: update web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 07 20:10:22 2022 +0000 (2022-06-07)
parents 2a0479881723
children
rev   line source
pascal@366 1 # SliTaz package receipt.
pascal@366 2
pascal@366 3 PACKAGE="cromfs"
pascal@19984 4 VERSION="1.5.10.2"
pascal@366 5 CATEGORY="system-tools"
pascal@366 6 SHORT_DESC="Compressed read only filesystem implemented with FUSE."
pascal@366 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15143 8 LICENSE="GPL3"
pankso@4162 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20669 10 WEB_SITE="https://bisqwit.iki.fi/source/cromfs.html"
pascal@20669 11 WGET_URL="https://bisqwit.iki.fi/src/arch/$TARBALL"
pascal@366 12
pascal@24766 13 DEPENDS="fuse2 lzma lzo libgomp"
pascal@24766 14 BUILD_DEPENDS="$DEPENDS fuse2-dev lzo-dev pkg-config coreutils-file-format perl"
pascal@15143 15
pascal@24436 16 # What is the latest version available today?
pascal@24436 17 current_version()
pascal@24436 18 {
pascal@24436 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24436 21 }
pascal@24436 22
pascal@366 23 # Rules to configure and make the package.
pascal@366 24 compile_rules()
pascal@366 25 {
pankso@4162 26 sed -i s'/FBLOCK_CACHE_MAX_SIZE = 10/FBLOCK_CACHE_MAX_SIZE = 4/' \
pankso@4162 27 cromfs.cc
pankso@4162 28 ./configure \
pankso@4162 29 --prefix=/usr \
pankso@4162 30 $CONFIGURE_ARGS &&
pascal@19706 31 make -j 1 2>&1 | grep -v cromfs-driver-static
pascal@15143 32 mkdir -p $DESTDIR/bin $DESTDIR/usr/bin
pascal@15143 33 cp $src/cromfs-driver $DESTDIR/bin
slaxemulator@8770 34 # Maybe have a plited packages (cromfs-static)
pascal@15602 35 #cp $src/cromfs-driver-static $DESTDIR/bin/cromfs-driver
pascal@15143 36 cp $src/util/cvcromfs $DESTDIR/usr/bin
pascal@15143 37 cp $src/util/mkcromfs $DESTDIR/usr/bin
pascal@15143 38 cp $src/util/unmkcromfs $DESTDIR/bin
pascal@366 39 }
pascal@366 40
pascal@366 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@366 42 genpkg_rules()
pascal@366 43 {
pascal@15143 44 cp -a $install/usr $fs
pascal@15143 45 cp -a $install/bin $fs
pascal@366 46 }