wok-current view efivar/receipt @ rev 24542

updated fcron (3.2.1 -> 3.3.1)
author Hans-G?nter Theisgen
date Thu Feb 24 14:25:23 2022 +0100 (2022-02-24)
parents 53e5c9f49c0f
children 4f8f52451ff7
line source
1 # SliTaz package receipt.
3 PACKAGE="efivar"
4 VERSION="37"
5 CATEGORY="system-tools"
6 SHORT_DESC="Manage UEFI variables."
7 MAINTAINER="developer@slitaz.org"
8 LICENSE="LGPLv2.1"
9 WEB_SITE="https://github.com/rhboot/efivar"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="gcc83 icu-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export CC_FOR_BUILD=gcc-83
27 export COMPILER=gcc-83
28 export CFLAGS="$CFLAGS -I/usr/include/unicode"
30 # replace char16_t by wchar_t:
31 sed -i 's|char16_t|wchar_t|g' src/export.c
33 make libdir=/usr/lib &&
34 make libdir=/usr/lib DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }
46 post_install()
47 {
48 # if SliTaz was booted by EFI, mount evivarfs now
49 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
50 # and after reboot:
51 # insert mount into /etc/init.d/local.sh
52 grep -qs efivarfs $1/etc/init.d/local.sh ||
53 echo -e "#inserted by post_install of evifar up to END-efivar:
54 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
55 #END-efivar" >>$1/etc/init.d/local.sh
56 }