wok-current view tazlito/receipt @ rev 25696

Update tazlito to use grub2-efi-x64 for EFI boot
author Stanislas Leduc <shann@slitaz.org>
date Thu Apr 04 12:30:52 2024 +0000 (7 weeks ago)
parents a8b1ac48fc8d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazlito"
4 VERSION="537"
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
23 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
24 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Patch for support pae kernel
31 patch -p1 < $stuff/support-kernel-pae.patch
33 # Fix mount iso image bug
34 patch -p1 < $stuff/fix-mountiso.patch
36 # Patch for support efi livecd
37 patch -p1 < $stuff/support-efi.patch
39 sed -i "s/^VERSION=.*/VERSION=$VERSION/" tazlito
40 make DESTDIR=$DESTDIR VERSION=$VERSION install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs
47 cp -a $install/* $fs
48 chown -R root.root $fs
49 chmod 755 $fs/usr/bin/tazlito*
50 sed 's|.*boot/grub|#&|' -i $fs/usr/bin/tazlito* # keep splash.xpm.gz for tazinst
51 # Declare /etc/tazlito/distro-packages.list & /etc/tazlito/tazlito.conf
52 touch $fs/etc/tazlito/tazlito.conf
53 touch $fs/etc/tazlito/distro-packages.list
54 }