void-packages/srcpkgs/gummiboot/template

32 lines
1.0 KiB
Bash

# Template file for 'gummiboot'
pkgname=gummiboot
version=48.1
revision=1
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="Eivind Uggedal <eivind@uggedal.com>"
license="LGPL-2.0-or-later"
homepage="http://freedesktop.org/wiki/Software/gummiboot"
distfiles="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-${version}.tar.gz"
checksum=2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295
only_for_archs="i686 i686-musl x86_64 x86_64-musl aarch64 aarch64-musl"
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
}