SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "elilo"

# SliTaz package receipt.

PACKAGE="elilo"
VERSION="3.16"
CATEGORY="system-tools"
SHORT_DESC="The EFI linux boot loader."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://sourceforge.net/projects/elilo/"

TARBALL="$PACKAGE-$VERSION-all.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

BUILD_DEPENDS="gnu-efi"
# See http://mactel-linux.sourceforge.net/wiki/Main_Page
#     genisoimage -boot-hfs-file

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/elilo/files/elilo/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*/elilo-||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $install/boot/efi/boot
    mkdir -p $install/usr/sbin
    mkdir -p $install/usr/share

    tar -xz -f $PACKAGE-$VERSION-source.tar.gz &&
    cd    $PACKAGE-$VERSION-source &&
    cp -a docs        $install/usr/share/doc
    cp README*        $install/usr/share/doc
#    rm -rf            $install/usr/share/doc/CVS
    grep -rl 'StrnCpy(' * | xargs sed -i 's|StrnCpy(|StrnCpyElilo(|'
    sed -i 's|dpkg-architecture.*)|echo ia32)|' \
        Make.defaults
    make ARCH=ia32 -j 1 &&
    cp elilo.efi        $install/boot/efi/boot/elilo &&
    cp tools/eliloalt    $install/usr/sbin
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/sbin

    cp -a $install/boot    $fs
    cp -a $install/usr/sbin    $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)