SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tazlito"

# SliTaz package receipt.

PACKAGE="tazlito"
VERSION="537"
CATEGORY="base-system"
SHORT_DESC="SliTaz Live Tool."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.slitaz.org/"
WGET_URL="http://hg.slitaz.org/tazlito/archive/$VERSION.tar.gz"
CONFIG_FILES="/etc/tazlito"
TAGS="slitaz"

DEPENDS="lzma cdrkit"
SUGGESTED="tazpanel"
BUILD_DEPENDS="gettext"

# What is the latest version available today?
current_version()
{
    wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
    sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
    xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
}

# Rules to configure and make the package.
compile_rules()
{
    # Patch for support pae kernel
    patch -p1 < $stuff/support-kernel-pae.patch

    # Fix mount iso image bug
    patch -p1 < $stuff/fix-mountiso.patch

    # Patch for support efi livecd
    patch -p1 < $stuff/support-efi.patch

    sed -i "s/^VERSION=.*/VERSION=$VERSION/" tazlito
    make DESTDIR=$DESTDIR VERSION=$VERSION install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs
    cp -a $install/* $fs
    chown -R root.root $fs
    chmod 755 $fs/usr/bin/tazlito*
    sed 's|.*boot/grub|#&|' -i $fs/usr/bin/tazlito*    # keep splash.xpm.gz for tazinst
    # Declare /etc/tazlito/distro-packages.list & /etc/tazlito/tazlito.conf
    touch $fs/etc/tazlito/tazlito.conf
    touch $fs/etc/tazlito/distro-packages.list
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)