PKGBUILDs/extra/gnu-efi-libs/PKGBUILD

41 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-09 01:34:01 +00:00
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - define aarch64
buildarch=8
[[ "${CARCH}" == "x86_64" ]] && _EFI_ARCH="x86_64"
[[ "${CARCH}" == "i686" ]] && _EFI_ARCH="ia32"
[[ "${CARCH}" == "aarch64" ]] && _EFI_ARCH="aarch64"
2019-12-02 14:37:36 +00:00
_pkgver=3.0.11
2015-07-09 01:34:01 +00:00
pkgname="gnu-efi-libs"
pkgver="${_pkgver}"
2020-05-19 01:49:52 +00:00
pkgrel=2
2015-07-09 01:34:01 +00:00
pkgdesc="Library for building UEFI Applications using GNU toolchain"
2019-12-02 14:37:36 +00:00
url="https://sourceforge.net/projects/gnu-efi/"
2015-07-09 01:34:01 +00:00
license=('GPL')
2018-03-21 04:04:15 +00:00
arch=('x86_64')
2015-07-09 01:34:01 +00:00
options=('!strip' '!makeflags' '!buildflags')
makedepends=('pciutils')
2019-12-02 14:37:36 +00:00
source=("https://download.sourceforge.net/gnu-efi/gnu-efi-${pkgver}.tar.bz2")
md5sums=('21148bbcccec385a9bfdf5f678959577')
2015-07-09 01:34:01 +00:00
build() {
cd "${srcdir}/gnu-efi-${_pkgver}/"
make lib gnuefi inc apps
}
package() {
cd "${srcdir}/gnu-efi-${_pkgver}/"
make INSTALLROOT="${pkgdir}" PREFIX="/usr" LIBDIR="/usr/lib" install
install -d "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/"
install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}/${_EFI_ARCH}/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/"
}