void-packages/srcpkgs/gummiboot/template

47 lines
1.5 KiB
Bash

# Template file for 'gummiboot'
pkgname=gummiboot
version=48.1
revision=8
archs="i686* x86_64* aarch64*"
build_style=gnu-configure
conf_files="/etc/default/gummiboot"
hostmakedepends="automake pkg-config libxslt docbook-xsl"
makedepends="gnu-efi-libs liblzma-devel libblkid-devel"
depends="${pkgname}-efistub>=${version}_${revision}"
short_desc="Simple UEFI Boot Manager"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="LGPL-2.0-or-later"
# Homepage is long dead and the project has an unofficial release under Alpine
# homepage="http://freedesktop.org/wiki/Software/gummiboot"
homepage="https://pkgs.alpinelinux.org/package/edge/main/x86/gummiboot"
distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
CFLAGS="-std=gnu89"
configure_args="--with-efi-ldsdir=${XBPS_CROSS_BASE}/usr/lib
--with-efi-libdir=${XBPS_CROSS_BASE}/usr/lib
--with-efi-includedir=${XBPS_CROSS_BASE}/usr/include"
pre_configure() {
./autogen.sh
}
post_install() {
vinstall ${FILESDIR}/kernel.d/gummiboot.post-install 744 \
etc/kernel.d/post-install 50-gummiboot
vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 744 \
etc/kernel.d/post-remove 50-gummiboot
vinstall ${FILESDIR}/kernel.d/gummiboot.confd 644 \
etc/default gummiboot
vdoc "${FILESDIR}/README.voidlinux"
}
gummiboot-efistub_package() {
short_desc="Linux UEFI stub from the gummiboot project"
pkg_install() {
vmove "usr/lib/gummiboot/*.efi.stub"
}
}