wok annotate littleutils/receipt @ rev 25035

Up libqcow (20210419)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 18:11:13 2022 +0000 (2022-05-20)
parents 77985554a151
children ad0bc3efbf37
rev   line source
pascal@17411 1 # SliTaz package receipt.
pascal@17411 2
pascal@17411 3 PACKAGE="littleutils"
Hans-G?nter@23138 4 VERSION="1.0.43"
pascal@17411 5 CATEGORY="misc"
pascal@17411 6 SHORT_DESC="Image optimizers, archive recompressors, file property tools ..."
pascal@17411 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17411 8 LICENSE="GPL3"
Hans-G?nter@21368 9 WEB_SITE="https://sourceforge.net/projects/littleutils/"
Hans-G?nter@21368 10
pascal@17411 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@17411 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@17411 13
pascal@17411 14 DEPENDS="bash perl"
pascal@17411 15
pascal@24411 16 # What is the latest version available today?
pascal@24411 17 current_version()
pascal@24411 18 {
pascal@24411 19 wget -O - https://sourceforge.net/projects/littleutils/files/littleutils-source/ 2>/dev/null | \
pascal@24411 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*/littleutils-source/||;s|/.*||;q'
pascal@24411 22 }
pascal@24411 23
pascal@17411 24 # Rules to configure and make the package.
pascal@17411 25 compile_rules()
pascal@17411 26 {
pascal@17411 27 sed -i '/stdalign/d' littleutils/*.c
Hans-G?nter@21368 28
Hans-G?nter@21368 29 ./configure \
Hans-G?nter@21368 30 --prefix=/usr \
Hans-G?nter@21368 31 --sysconfdir=/etc \
pascal@17411 32 $CONFIGURE_ARGS &&
Hans-G?nter@21368 33 make -j 1 &&
pascal@17411 34 make DESTDIR=$DESTDIR install
pascal@17411 35 }
pascal@17411 36
pascal@17411 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17411 38 genpkg_rules()
pascal@17411 39 {
pascal@17411 40 mkdir -p $fs/usr
Hans-G?nter@21368 41
Hans-G?nter@23138 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23138 43 cp -a $install/usr/lib $fs/usr
pascal@17411 44 }