wok annotate efivar/receipt @ rev 24264

updated perl-tk (804.034 -> 804.036)
author Hans-G?nter Theisgen
date Sun Jan 02 10:23:39 2022 +0100 (2022-01-02)
parents 53e5c9f49c0f
children 20ad21d5532c
rev   line source
Hans-G?nter@23928 1 # SliTaz package receipt.
Hans-G?nter@23928 2
Hans-G?nter@23928 3 PACKAGE="efivar"
Hans-G?nter@23928 4 VERSION="37"
Hans-G?nter@23928 5 CATEGORY="system-tools"
Hans-G?nter@23928 6 SHORT_DESC="Manage UEFI variables."
Hans-G?nter@23928 7 MAINTAINER="developer@slitaz.org"
Hans-G?nter@23928 8 LICENSE="LGPLv2.1"
Hans-G?nter@23928 9 WEB_SITE="https://github.com/rhboot/efivar"
Hans-G?nter@23928 10
Hans-G?nter@23928 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23928 12 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL"
Hans-G?nter@23928 13
Hans-G?nter@23928 14 DEPENDS="gcc83-lib-base"
Hans-G?nter@23928 15 BUILD_DEPENDS="gcc83 icu-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@23928 26 export CC_FOR_BUILD=gcc-83
Hans-G?nter@23928 27 export COMPILER=gcc-83
Hans-G?nter@23928 28 export CFLAGS="$CFLAGS -I/usr/include/unicode"
Hans-G?nter@23928 29
Hans-G?nter@23928 30 # replace char16_t by wchar_t:
Hans-G?nter@23928 31 sed -i 's|char16_t|wchar_t|g' src/export.c
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@23928 40 mkdir -p $fs/usr/lib
Hans-G?nter@23928 41
Hans-G?nter@23928 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23928 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23928 44 }
Hans-G?nter@23928 45
Hans-G?nter@23928 46 post_install()
Hans-G?nter@23928 47 {
Hans-G?nter@23928 48 # if SliTaz was booted by EFI, mount evivarfs now
Hans-G?nter@23928 49 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
Hans-G?nter@23928 50 # and after reboot:
Hans-G?nter@23928 51 # insert mount into /etc/init.d/local.sh
pascal@23929 52 grep -qs efivarfs $1/etc/init.d/local.sh ||
Hans-G?nter@23928 53 echo -e "#inserted by post_install of evifar up to END-efivar:
Hans-G?nter@23928 54 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
Hans-G?nter@23928 55 #END-efivar" >>$1/etc/init.d/local.sh
Hans-G?nter@23928 56 }