APKBUILD 1.55 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gummiboot
3
pkgver=48.1
Natanael Copa's avatar
Natanael Copa committed
4 5 6
pkgrel=0
pkgdesc="Simple EFI Boot Manager"
url="http://freedesktop.org/wiki/Software/gummiboot"
7
arch="x86 x86_64"
8
license="LGPL-2.0-or-later"
Natanael Copa's avatar
Natanael Copa committed
9 10 11 12 13
depends=""
depends_dev="util-linux-dev"
makedepends="$depends_dev gnu-efi-dev autoconf automake docbook-xsl libxslt"
install=""
subpackages="$pkgname-doc"
14 15
#source="https://cgit.freedesktop.org/gummiboot/snapshot/gummiboot-$pkgver.tar.gz"
source="https://dev.alpinelinux.org/archive/gummiboot/gummiboot-$pkgver.tar.gz
16 17 18 19
	gummiboot-aarch64-support.patch
	"

builddir="$srcdir"/gummiboot-$pkgver
Natanael Copa's avatar
Natanael Copa committed
20 21

prepare() {
22 23 24
	cd "$builddir"
	default_prepare || return 1
	./autogen.sh || return 1
Natanael Copa's avatar
Natanael Copa committed
25 26 27
}

build() {
28
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
29 30 31 32 33
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
34
	make -j1 EFI_CFLAGS="$CFLAGS -std=gnu89"
Natanael Copa's avatar
Natanael Copa committed
35 36 37
}

package() {
38
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
39 40 41
	make install DESTDIR="$pkgdir" || return 1
}

42 43 44 45 46 47
md5sums="0cc22c57505e243eb8115abe82d174a4  gummiboot-48.1.tar.gz
a2a839382a217fbb7806bd0ee2be9a0f  gummiboot-aarch64-support.patch"
sha256sums="2b649a6eb22007cd34bb355ba4ca6c1a8058e115c13048985f09a0f11f3d5295  gummiboot-48.1.tar.gz
d2d8bb1f2b0572fca61c2fc881acfbdf370abc3dd330f5018a959a3253d7ead2  gummiboot-aarch64-support.patch"
sha512sums="a536db10ee384fa2cd38d22bd43f87215501c38471612a1d30986748d645d970e67b3f3d38fc9d6b53fe8532ec18283690f88d77b056dd737db5efb50bf63293  gummiboot-48.1.tar.gz
6acc971c59b917616d75f5935859d109efff14c55b8fb26075ee89b6e4141f1c91708c1fc77f0acb2239d9030f4b350eaf1dac59ebb37e7a9ae5682eb52687cf  gummiboot-aarch64-support.patch"