wok annotate tazlito/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (15 months ago) |
parents | 81a0a7a51fa6 |
children |
rev | line source |
---|---|
pankso@10 | 1 # SliTaz package receipt. |
pankso@10 | 2 |
pankso@10 | 3 PACKAGE="tazlito" |
pascal@25179 | 4 VERSION="537" |
pankso@211 | 5 CATEGORY="base-system" |
pankso@10 | 6 SHORT_DESC="SliTaz Live Tool." |
pascal@10945 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
pankso@10 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@10 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@13990 | 11 WGET_URL="http://hg.slitaz.org/tazlito/archive/$VERSION.tar.gz" |
pascal@20682 | 12 CONFIG_FILES="/etc/tazlito" |
jozee@4973 | 13 TAGS="slitaz" |
pankso@10 | 14 |
pankso@12138 | 15 DEPENDS="lzma cdrkit" |
pascal@18015 | 16 SUGGESTED="tazpanel" |
pascal@15613 | 17 BUILD_DEPENDS="gettext" |
pankso@12138 | 18 |
pascal@25179 | 19 # What is the latest version available today? |
pascal@24069 | 20 current_version() |
pascal@24069 | 21 { |
pascal@24069 | 22 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \ |
pascal@24069 | 23 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \ |
pascal@24069 | 24 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 25 } |
pascal@24069 | 26 |
pankso@12138 | 27 # Rules to configure and make the package. |
pankso@12138 | 28 compile_rules() |
pankso@12138 | 29 { |
pascal@19243 | 30 sed -i "s/^VERSION=.*/VERSION=$VERSION/" tazlito |
pascal@17427 | 31 make DESTDIR=$DESTDIR VERSION=$VERSION install |
pankso@12138 | 32 } |
pankso@12138 | 33 |
pankso@10 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10 | 35 genpkg_rules() |
pankso@10 | 36 { |
pankso@12138 | 37 mkdir -p $fs |
pankso@12138 | 38 cp -a $install/* $fs |
pankso@12138 | 39 chown -R root.root $fs |
pascal@21601 | 40 chmod 755 $fs/usr/bin/tazlito* |
pascal@24166 | 41 sed 's|.*boot/grub|#&|' -i $fs/usr/bin/tazlito* # keep splash.xpm.gz for tazinst |
pascal@20682 | 42 # Declare /etc/tazlito/distro-packages.list & /etc/tazlito/tazlito.conf |
pascal@20682 | 43 touch $fs/etc/tazlito/tazlito.conf |
pascal@693 | 44 touch $fs/etc/tazlito/distro-packages.list |
pankso@10 | 45 } |