### this file is sourced not run
PKGVER=1.8.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=efitools-1.8.1.tar.gz
MD5SUM=830988a246c7c0359eaea24233cbfb76
SRC_URL=https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/$TARBALL
BUNDLE=

SLACKREQ='sbsigntool' # sbsigntool is run-time, libgnu-efi, perl-slurp, help2man
SLACKDESC="efitools: efitools $PKGVER (Tools to manipulate UEFI Secure Boot keys)
efitools: 
efitools: This package contains various tools to manage UEFI Secure Boot keys, 
efitools: such as PK, KEK, db and dbx. 
efitools: 
efitools: Note1: LockDown.efi is not included, it is specific per-user.
efitools: Note2: None of the EFI binaries are signed. You will need to sign them
efitools: as needed (or get a third party like Microsoft to sign it for you).
efitools: 
efitools: http://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git
efitools: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/efitools*
	make ARCH=x86_64 && make ARCH=x86_64 install &&
	pkg_build_slackdesc &&
	
	# cleanup 
	rm -rf /root/.rnd &&
	rm -f usr/share/efitools/efi/LockDown.efi # don't want this to run by accident
}
