void-packages/srcpkgs/gummiboot/template

34 lines
1.1 KiB
Bash

# Template file for 'gummiboot'
pkgname=gummiboot
version=48.1
revision=3
archs="i686* x86_64* aarch64*"
build_style=gnu-configure
hostmakedepends="automake pkg-config libxslt docbook-xsl"
makedepends="gnu-efi-libs liblzma-devel libblkid-devel"
short_desc="Simple UEFI Boot Manager"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
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 750 \
etc/kernel.d/post-install 50-gummiboot
vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 750 \
etc/kernel.d/post-remove 50-gummiboot
}