From 1e0598b52b3c47382dec8151a4c54301c72ed908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 27 Apr 2020 22:52:30 +0700 Subject: [PATCH] refind: update to 0.12.0. --- srcpkgs/refind/template | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template index ed30ddeef1b..5e9865b9667 100644 --- a/srcpkgs/refind/template +++ b/srcpkgs/refind/template @@ -1,32 +1,35 @@ # Template file for 'refind' pkgname=refind -version=0.11.4 -revision=4 -makedepends="gnu-efi-libs git" +version=0.12.0 +revision=1 +archs="x86_64* i686* aarch64*" +makedepends="gnu-efi-libs" depends="bash dosfstools efibootmgr" short_desc="EFI boot manager utility" -maintainer="Julio Galvan " +maintainer="Đoàn Trần Công Danh " license="GPL-3.0-only, BSD-3-Clause" homepage="https://sourceforge.net/projects/refind/" distfiles="${SOURCEFORGE_SITE}/refind/refind-src-${version}.tar.gz" -checksum=39baf140603951da098238c1cbf4176fdd7d4a45fab0399e9985ad7368034dae -python_version=2 #unverified +checksum=7bb8505bc9ff87a7b6de38bf9a91d46f4d613b30031d5eb088a4d791a31eb7c4 +python_version=2 conf_files="/etc/default/refind-kernel-hook.conf" -case "$XBPS_TARGET_MACHINE" in - x86_64*|i686*|aarch64*) ;; - *) broken="${XBPS_TARGET_MACHINE} is unsupported" ;; -esac - post_extract() { - sed 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' -i refind-install + vsed -e 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind"|g' \ + -i refind-install # Patch paths to libaries and includes for cross-compiling - sed -e "s|^EFIINC.*|EFIINC = ${XBPS_CROSS_BASE}/usr/include/efi|" \ + vsed \ + -e "s|^EFIINC.*|EFIINC = ${XBPS_CROSS_BASE}/usr/include/efi|" \ -e "s|^GNUEFILIB.*|GNUEFILIB = ${XBPS_CROSS_BASE}/usr/lib|" \ -e "s|^EFILIB.*|EFILIB = ${XBPS_CROSS_BASE}/usr/lib|" \ -e "s|^EFICRT0.*|EFICRT0 = ${XBPS_CROSS_BASE}/usr/lib|" \ -i Make.common + + # Only this file is written in python3 + # All other files are python2 + vsed -e '1s,^.*python3$,#!/usr/bin/python3,' \ + -i refind-mkdefault } do_build() {