| 1 | # Maintainer: Natanael Copa <[email protected]> |
| 2 | pkgname=gummiboot |
| 3 | pkgver=48.1 |
| 4 | pkgrel=11 |
| 5 | pkgdesc="Simple EFI Boot Manager" |
| 6 | url="https://cgit.freedesktop.org/gummiboot/" |
| 7 | arch="x86 x86_64 aarch64" |
| 8 | license="LGPL-2.0-or-later" |
| 9 | depends="$pkgname-efistub=$pkgver-r$pkgrel" |
| 10 | makedepends="util-linux-dev gnu-efi-dev autoconf automake docbook-xsl libxslt" |
| 11 | subpackages="$pkgname-doc $pkgname-efistub" |
| 12 | #source="https://cgit.freedesktop.org/gummiboot/snapshot/gummiboot-$pkgver.tar.gz" |
| 13 | source="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-$pkgver.tar.gz |
| 14 | gummiboot-aarch64-support.patch |
| 15 | sysmacros.patch |
| 16 | remove-conflicts.patch |
| 17 | fix-non-secureboot-mode.patch |
| 18 | fix-waitforkey.patch |
| 19 | " |
| 20 | options="!check" |
| 21 | |
| 22 | prepare() { |
| 23 | default_prepare |
| 24 | ./autogen.sh |
| 25 | } |
| 26 | |
| 27 | build() { |
| 28 | ./configure \ |
| 29 | --build=$CBUILD \ |
| 30 | --host=$CHOST \ |
| 31 | --prefix=/usr |
| 32 | # new gnu-efi has stddef.h include which relies on it coming from syste., |
| 33 | # this uses -nostdinc and doesn't add it. these cflags come last, so it still |
| 34 | # shouldn't shadow the efi incdir. |
| 35 | make -j1 EFI_CFLAGS="$CFLAGS -I/usr/include -std=gnu89" |
| 36 | } |
| 37 | |
| 38 | package() { |
| 39 | make install DESTDIR="$pkgdir" |
| 40 | } |
| 41 | |
| 42 | # NOTE: It doesn't provide "efistub" provider because it's not compatible with |
| 43 | # efi-mkuki or ukify. |
| 44 | efistub() { |
| 45 | pkgdesc="Linux UEFI stub from the gummiboot project" |
| 46 | depends= |
| 47 | |
| 48 | amove usr/lib/gummiboot/*.efi.stub |
| 49 | } |
| 50 | |
| 51 | sha512sums=" |
| 52 | a536db10ee384fa2cd38d22bd43f87215501c38471612a1d30986748d645d970e67b3f3d38fc9d6b53fe8532ec18283690f88d77b056dd737db5efb50bf63293 gummiboot-48.1.tar.gz |
| 53 | 6acc971c59b917616d75f5935859d109efff14c55b8fb26075ee89b6e4141f1c91708c1fc77f0acb2239d9030f4b350eaf1dac59ebb37e7a9ae5682eb52687cf gummiboot-aarch64-support.patch |
| 54 | b16d5f68429acfd7ff7942ef6091455035645cb592b9f4b1424daff3245c584bf61c30a7d5eb236530c46226d67ba48f6496f6ae00de6c94a7c5e37f5bdc4831 sysmacros.patch |
| 55 | 2f48957253afdb05d1ec401a80383bc582543822fda2c2a30b8a9137481b6911194ac34c7da323414dd00234cd51b8f7803788360e747d325e192b71f9171f72 remove-conflicts.patch |
| 56 | cf411c3ecf5f6d975533a85c3fa0f0cf5ee1bb4e899680179d7a3103ccf618c68b0746faac0a83497f1e150f691a26399fc73e5e644b03954e4bcc02c07702b1 fix-non-secureboot-mode.patch |
| 57 | d07c3e0ea4eaed0396e13d5327ac282681d1667333d29fa420ffd81f81c341ef85c1d8ce621873d63310a7d3f9d691c8f70a3e52b0227aeaaadd7943e4ff3b9c fix-waitforkey.patch |
| 58 | " |