d78cb0d201
some packages were dropped but their maintainer= was not updated in template. this will help new maintainers adopt these packages. -> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'gnu-efi-libs'
|
|
pkgname=gnu-efi-libs
|
|
reverts="3.0w_1" # Not an actual revert, xbps considers 3.0w higher than 3.0.8
|
|
version=3.0.9
|
|
revision=2
|
|
wrksrc="gnu-efi-${version}"
|
|
makedepends="pciutils-devel"
|
|
short_desc="Library for building UEFI Applications using GNU toolchain"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://sourceforge.net/projects/gnu-efi/"
|
|
distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi-${version}.tar.bz2"
|
|
checksum=6715ea7eae1c7e4fc5041034bd3f107ec2911962ed284a081e491646b12277f0
|
|
nostrip=yes
|
|
|
|
# If we are cross-building we need to pass the cross-compilation triplet
|
|
# to the CROSS_COMPILE environment variable so the build system uses
|
|
# the cross tooling
|
|
if [ "$CROSS_BUILD" ]; then
|
|
export CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
|
fi
|
|
|
|
# Filter out arches for the host machine
|
|
# the makefile only accept specific names like ia32 for i686
|
|
# and arm for all armv*, we also get to remove the musl specifiers
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*) HOST_ARCH=x86_64 ;;
|
|
i686*) HOST_ARCH=ia32 ;;
|
|
arm*) HOST_ARCH=arm ;;
|
|
aarch64*) HOST_ARCH=aarch64 ;;
|
|
esac
|
|
|
|
# Filter our arches for the target machines
|
|
# the same rules as above apply, we also get a chance to declare
|
|
# broken= here for unsupported configurations
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) TARGET_ARCH=x86_64 ;;
|
|
i686*) TARGET_ARCH=ia32 ;;
|
|
arm*) TARGET_ARCH=arm ;;
|
|
aarch64*) TARGET_ARCH=aarch64 ;;
|
|
*) broken="${XBPS_TARGET_MACHINE} is untested, please add support if possible" ;;
|
|
esac
|
|
|
|
do_build() {
|
|
make ARCH=${TARGET_ARCH} HOSTARCH=${HOST_ARCH}
|
|
}
|
|
|
|
do_install() {
|
|
make ARCH=${TARGET_ARCH} INSTALLROOT=${DESTDIR} PREFIX=/usr LIBDIR=/usr/lib install
|
|
}
|