-
-
Save diabonas/693548bc921506ddf78b6f4e6692ed51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Taylor Smock <vorpalblade77@gmail.com> | |
# contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) | |
# (gemmaeiil) (ddoott) (ccoomm)> | |
pkgname=shim-efi | |
pkgver=15 | |
pkgrel=1 | |
pkgdesc='UEFI shim loader' | |
arch=('x86_64') | |
url='https://github.com/rhboot/shim' | |
license=('BSD') | |
makedepends=('git' 'gnu-efi-libs') | |
install='shim.install' | |
changelog='shim.changelog' | |
source=("git+${url}.git?signed#tag=$pkgver") | |
sha256sums=('SKIP') | |
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com> | |
# Change to path for your own certificate | |
# The source package has a tool called "make-certs" that you can use | |
# to make your own certificate(s) | |
_certfile='/etc/efi/certs/pub.crt' | |
build() { | |
cd shim | |
[ -f "${_certfile}" ] && _makeArgs="VENDOR_CERT_FILE=${_certfile}" | |
make EFI_PATH=/usr/lib/ ENABLE_HTTPBOOT=1 ${_makeArgs} | |
} | |
package() { | |
cd shim | |
make DESTDIR="$pkgdir" install-as-data | |
install -Dm644 COPYRIGHT -t "$pkgdir/usr/share/licenses/$pkgname" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment