wok-6.x view efivar/receipt @ rev 24895
libgpod: libplist 2.x support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 08 11:37:28 2022 +0000 (2022-04-08) |
parents | 53e5c9f49c0f |
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 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 }