wok annotate efibootmgr/receipt @ rev 24889

grub2: sed command corrected
author Hans-G?nter Theisgen
date Sat Apr 02 17:34:21 2022 +0100 (2022-04-02)
parents 5ea0ce1cecc0
children 20ad21d5532c
rev   line source
Hans-G?nter@23928 1 # SliTaz package receipt.
Hans-G?nter@23928 2
Hans-G?nter@23928 3 PACKAGE="efibootmgr"
Hans-G?nter@24510 4 VERSION="17"
Hans-G?nter@23928 5 CATEGORY="system-tools"
Hans-G?nter@23928 6 SHORT_DESC="Manage UEFI boot manager variables."
Hans-G?nter@23928 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@23928 8 LICENSE="GPLv2+"
Hans-G?nter@23928 9 WEB_SITE="https://github.com/rhinstaller/efibootmgr"
Hans-G?nter@23928 10
Hans-G?nter@23928 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23928 12 WGET_URL="https://github.com/rhboot/efibootmgr/archive/$VERSION.tar.gz"
Hans-G?nter@23928 13
Hans-G?nter@23928 14 DEPENDS="efivar gcc83-lib-base popt"
Hans-G?nter@23928 15 BUILD_DEPENDS="efivar-dev gcc83 icu-dev popt-dev"
Hans-G?nter@23928 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
Hans-G?nter@23928 23 # Rules to configure and make the package.
Hans-G?nter@23928 24 compile_rules()
Hans-G?nter@23928 25 {
Hans-G?nter@24510 26 patch --strip=1 --input=$stuff/patches/efibootmgr.c-17 &&
Hans-G?nter@24510 27
Hans-G?nter@23928 28 export EFIDIR=/boot/efi
Hans-G?nter@23928 29 export CC=gcc-83
Hans-G?nter@23928 30 export COMPILER=gcc-83
Hans-G?nter@23928 31 export CFLAGS="$CFLAGS -I/usr/include/unicode -I/usr/include/efivar"
Hans-G?nter@23928 32
Hans-G?nter@23928 33 make libdir=/usr/lib &&
Hans-G?nter@23928 34 make libdir=/usr/lib DESTDIR=$DESTDIR install
Hans-G?nter@23928 35 }
Hans-G?nter@23928 36
Hans-G?nter@23928 37 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@23928 38 genpkg_rules()
Hans-G?nter@23928 39 {
Hans-G?nter@24510 40 cook_copy_folders sbin
Hans-G?nter@23928 41 }