wok-current view efivar/receipt @ rev 25624

Patch gst-ffmpeg to work with new gcc
author Stanislas Leduc <shann@slitaz.org>
date Mon Sep 04 19:03:50 2023 +0000 (13 months ago)
parents 5ea0ce1cecc0
children 3ad63c8fc2f9
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 BUILD_DEPENDS="icu-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 export CFLAGS="$CFLAGS -I/usr/include/unicode"
27 # replace char16_t by wchar_t:
28 sed -i 's|char16_t|wchar_t|g' src/export.c
30 make libdir=/usr/lib &&
31 make libdir=/usr/lib DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }
43 post_install()
44 {
45 # if SliTaz was booted by EFI, mount evivarfs now
46 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
47 # and after reboot:
48 # insert mount into /etc/init.d/local.sh
49 grep -qs efivarfs $1/etc/init.d/local.sh ||
50 echo -e "#inserted by post_install of evifar up to END-efivar:
51 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
52 #END-efivar" >>$1/etc/init.d/local.sh
53 }