void-packages/srcpkgs/efitools/template

40 lines
1.1 KiB
Bash

# Template file for 'efitools'
pkgname=efitools
version=1.9.2
revision=5
archs="x86_64* i686* arm* aarch64*"
build_style=gnu-makefile
hostmakedepends="perl-File-Slurp"
makedepends="gnu-efi-libs openssl-devel"
short_desc="Tools to manipulate EFI secure boot platforms"
maintainer="Doan Tran Cong Danh <congdanhqx@gmail.com>"
license="GPL-2.0-only"
homepage="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${pkgname}-${version}.tar.gz"
checksum=0f315b36e7d1ba74bfc97ab9f304f0a3072c47578bbe5e42594acae381f9acfe
patch_args="-Nup1"
post_patch() {
case "${XBPS_TARGET_MACHINE}" in
arm*) _ARCH=arm ;;
i686*) _ARCH=ia32 ;;
*) _ARCH="${XBPS_TARGET_MACHINE%-musl}" ;;
esac
# 1: correct target arch
# 2: link to correct .o files
# 3: include sysroot's header
# 4: link to sysroot library
# 5: cross-objcopy
vsed -i -e "/^ARCH[[:space:]]*=/s/=.*/=${_ARCH}/" Make.rules
}
efitools-efi_package() {
short_desc+=" - bare metal tools"
nostrip=yes
noverifyrdeps=yes
noshlibprovides=yes
pkg_install() {
vmove usr/share/efitools
}
}