# SliTaz package receipt. PACKAGE="lfs-book" VERSION="11.1" CATEGORY="development" SHORT_DESC="Linux From Scratch book." MAINTAINER="slaxemulator@gmail.com" LICENSE="CC-BY-NC-SA-2 MIT" WEB_SITE="https://www.linuxfromscratch.org/lfs/" TARBALL="LFS-BOOK-$VERSION.tar.xz" WGET_URL="https://www.linuxfromscratch.org/lfs/downloads/$VERSION/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://www.linuxfromscratch.org/lfs/downloads/stable/ 2>/dev/null | \ sed '/LFS-BOOK-[0-9]/!d;/tar/!d;s|.*LFS-BOOK-\(.*\).tar.*|\1|' | sort -Vr | sed q } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/doc/$PACKAGE cp -a $src/* $fs/usr/share/doc/$PACKAGE }