mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Maintainer: Fabian Kosmale <inkane@chakra-project.org>
|
|
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
|
# Contributor: Keshav Padram <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
|
|
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
|
|
|
|
_pkgver="3.0"
|
|
pkgname="gnu-efi-libs"
|
|
pkgver="${_pkgver}u"
|
|
pkgrel="1"
|
|
pkgdesc="Library for building UEFI Applications using GNU toolchain"
|
|
url="http://sourceforge.net/projects/gnu-efi/"
|
|
license=('GPL')
|
|
arch=('x86_64')
|
|
options=('!strip' '!makeflags')
|
|
makedepends=('pciutils')
|
|
|
|
source=("http://download.sourceforge.net/gnu-efi/gnu-efi_${pkgver}.orig.tar.gz")
|
|
md5sums=('d15d3c700e79a1e2938544d73edc572d')
|
|
|
|
_EFI_ARCH="x86_64" # we only support x86_64
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/gnu-efi-${_pkgver}/"
|
|
|
|
## Unset all compiler FLAGS
|
|
unset CFLAGS
|
|
unset CPPFLAGS
|
|
unset CXXFLAGS
|
|
unset LDFLAGS
|
|
unset MAKEFLAGS
|
|
|
|
make -j1
|
|
make -j1 -C apps all
|
|
|
|
}
|
|
|
|
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}/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/"
|
|
|
|
}
|
|
|