OCaml 4.14.0 rebuild
[arch-packages.git] / sbsigntools / trunk / PKGBUILD
blobef7a40bd42269377d96302062efe6519eadc0621
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Mico Tischler <mt-ml at gmx dot net>
4 # Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
6 pkgname=sbsigntools
7 pkgver=0.9.4
8 pkgrel=2
9 pkgdesc="Tools to add signatures to EFI binaries and Drivers"
10 arch=('x86_64')
11 url="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/about"
12 license=('GPL3')
13 depends=('glibc' 'openssl')
14 makedepends=('git' 'gnu-efi' 'help2man' 'util-linux-libs')
15 source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git#tag=v${pkgver}?signed"
16         "git+https://git.ozlabs.org/ccan"
17         "0.9.4-fix-pe-coff-checksum.patch"
18         )
19 sha256sums=('SKIP'
20             'SKIP'
21             'b6b56c5568bcc51ae3c0dea9af02bc840241d2405c300c5b7adcb61962dadf01')
22 validpgpkeys=('D5606E73C8B46271BEAD9ADF814AE47C214854D6') # James Bottomley <jejb@kernel.org>
24 prepare() {
25   cd ${pkgname}
26   git submodule init
27   git config submodule."lib/ccan.git".url "${srcdir}/ccan"
28   git submodule update
29   ./autogen.sh
30   # fix #FS#71822
31   # https://git.launchpad.net/ubuntu/+source/sbsigntool/patch/?id=e9f13a7c4c19ed4ef12f226821bbcd2295d1af73
32   patch -Np1 -i "${srcdir}"/0.9.4-fix-pe-coff-checksum.patch
35 build() {
36   cd "${pkgname}"
37   ./configure --prefix="/usr" \
38               --bindir="/usr/bin" \
39               --sbindir="/usr/bin" \
40               --libexecdir="/usr/lib" \
41               --mandir="/usr/share/man" \
42               --sysconfdir="/etc"
43   make
46 package() {
47   depends+=('libuuid.so')
48   cd "${pkgname}"
49   make DESTDIR="${pkgdir}" install
50   install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} \
51     -t "${pkgdir}/usr/share/doc/${pkgname}"