wok annotate fatattr/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | e3079653b462 |
children |
rev | line source |
---|---|
pascal@814 | 1 # SliTaz package receipt. |
pascal@814 | 2 |
pascal@814 | 3 PACKAGE="fatattr" |
pascal@25041 | 4 VERSION="1.0.1" |
pascal@814 | 5 CATEGORY="base-system" |
pascal@814 | 6 SHORT_DESC="Handle fat attributes." |
pascal@814 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2" |
pascal@25041 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@20421 | 10 WEB_SITE="https://www.kernel.org/" |
pascal@25041 | 11 WGET_URL="http://deb.debian.org/debian/pool/main/f/fatattr/fatattr_$VERSION.orig.tar.xz" |
pascal@814 | 12 |
pascal@24565 | 13 # What is the latest version available today? |
pascal@24565 | 14 current_version() |
pascal@24565 | 15 { |
pascal@24565 | 16 wget -O - https://gitlab.com/Terseus/fatattr/-/commits/master 2>/dev/null | \ |
pascal@24565 | 17 sed '/commits-row/!d;s|.*day="||;s|".*||;s|-||g;q' |
pascal@24565 | 18 } |
pascal@24565 | 19 |
pascal@814 | 20 # Rules to configure and make the package. |
pascal@814 | 21 compile_rules() |
pascal@814 | 22 { |
pascal@814 | 23 ./configure |
pascal@814 | 24 make |
pascal@814 | 25 } |
pascal@814 | 26 |
pascal@814 | 27 |
pascal@814 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@814 | 29 genpkg_rules() |
pascal@814 | 30 { |
pascal@814 | 31 mkdir -p $fs/usr/bin |
pascal@814 | 32 cp $src/fatattr $fs/usr/bin |
pascal@14781 | 33 cp $stuff/fatattr.sh $fs/usr/bin |
pascal@814 | 34 } |