wok-current annotate lfs-book/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | ff7bcf1ac1d8 |
children | d1a0bda8c077 |
rev | line source |
---|---|
slaxemulator@9364 | 1 # SliTaz package receipt. |
slaxemulator@9364 | 2 |
slaxemulator@9364 | 3 PACKAGE="lfs-book" |
Hans-G?nter@21106 | 4 VERSION="8.4" |
slaxemulator@9364 | 5 CATEGORY="development" |
Hans-G?nter@21106 | 6 SHORT_DESC="Linux From Scratch book." |
slaxemulator@9364 | 7 MAINTAINER="slaxemulator@gmail.com" |
al@14589 | 8 LICENSE="CC-BY-NC-SA-2 MIT" |
al@14589 | 9 WEB_SITE="http://www.linuxfromscratch.org/lfs/" |
Hans-G?nter@21106 | 10 |
al@14589 | 11 TARBALL="LFS-BOOK-$VERSION.tar.bz2" |
slaxemulator@9364 | 12 WGET_URL="http://www.linuxfromscratch.org/lfs/downloads/$VERSION/$TARBALL" |
slaxemulator@9364 | 13 |
pascal@24447 | 14 # What is the latest version available today? |
pascal@24447 | 15 current_version() |
pascal@24447 | 16 { |
pascal@24447 | 17 wget -O - https://www.linuxfromscratch.org/lfs/downloads/stable/ 2>/dev/null | \ |
pascal@24447 | 18 sed '/LFS-BOOK-[0-9]/!d;/tar/!d;s|.*LFS-BOOK-\(.*\).tar.*|\1|' | sort -Vr | sed q |
pascal@24447 | 19 } |
pascal@24447 | 20 |
slaxemulator@9364 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9364 | 22 genpkg_rules() |
slaxemulator@9364 | 23 { |
slaxemulator@9364 | 24 mkdir -p $fs/usr/share/doc/$PACKAGE |
slaxemulator@9364 | 25 cp -a $src/* $fs/usr/share/doc/$PACKAGE |
slaxemulator@9364 | 26 } |