wok-6.x view tazlito/receipt @ rev 24066

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 15:00:07 2021 +0000 (2021-07-05)
parents b6120eeb6704
children 7e911016a644
line source
1 # SliTaz package receipt.
3 PACKAGE="tazlito"
4 VERSION="529"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz Live Tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/tazlito/archive/$VERSION.tar.gz"
12 CONFIG_FILES="/etc/tazlito"
13 TAGS="slitaz"
15 DEPENDS="lzma cdrkit"
16 SUGGESTED="tazpanel"
17 BUILD_DEPENDS="gettext"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i "s/^VERSION=.*/VERSION=$VERSION/" tazlito
23 make DESTDIR=$DESTDIR VERSION=$VERSION install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs
30 cp -a $install/* $fs
31 chown -R root.root $fs
32 chmod 755 $fs/usr/bin/tazlito*
33 sed 's|.*boot/grub|#&|' $fs/usr/bin/tazlito* # keep splash.xpm.gz for tazinst
34 # Declare /etc/tazlito/distro-packages.list & /etc/tazlito/tazlito.conf
35 touch $fs/etc/tazlito/tazlito.conf
36 touch $fs/etc/tazlito/distro-packages.list
37 }