SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "efibootmgr"

# SliTaz package receipt.

PACKAGE="efibootmgr"
VERSION="17"
CATEGORY="system-tools"
SHORT_DESC="Manage UEFI boot manager variables."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPLv2+"
WEB_SITE="https://github.com/rhinstaller/efibootmgr"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/rhboot/efibootmgr/archive/$VERSION.tar.gz"

DEPENDS="efivar gcc83-lib-base popt"
BUILD_DEPENDS="efivar-dev gcc83 icu-dev popt-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    patch --strip=1 --input=$stuff/patches/efibootmgr.c-17 &&

    export    EFIDIR=/boot/efi
    export    CC=gcc-83
    export    COMPILER=gcc-83
    export    CFLAGS="$CFLAGS -I/usr/include/unicode -I/usr/include/efivar"

    make libdir=/usr/lib &&
    make libdir=/usr/lib DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    sbin
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)