Skip to content

Instantly share code, notes, and snippets.

@diabonas diabonas/PKGBUILD Secret
Created Mar 23, 2019

Embed
What would you like to do?
# 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
You can’t perform that action at this time.