wok view efivar/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC_FOR_BUILD=gcc-83
28 export COMPILER=gcc-83
29 export CFLAGS="$CFLAGS -I/usr/include/unicode"
31 # replace char16_t by wchar_t:
32 sed -i 's|char16_t|wchar_t|g' src/export.c
34 make libdir=/usr/lib &&
35 make libdir=/usr/lib DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 }
47 post_install()
48 {
49 # if SliTaz was booted by EFI, mount evivarfs now
50 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
51 # and after reboot:
52 # insert mount into /etc/init.d/local.sh
53 grep -qs efivarfs $1/etc/init.d/local.sh ||
54 echo -e "#inserted by post_install of evifar up to END-efivar:
55 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
56 #END-efivar" >>$1/etc/init.d/local.sh
57 }