aboutsummaryrefslogtreecommitdiffstats
path: root/testing/efibootmgr/APKBUILD
blob: 279d28e26382f8e8a8096bb21ce2044a698eb7ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@openmailbox.org>
pkgname=efibootmgr
pkgver=16
pkgrel=0
pkgdesc="Linux user-space application to modify the Intel Extensible Firmware Interface"
url="https://github.com/rhboot/efibootmgr"
arch="x86 x86_64 armhf armv7 aarch64"
license="GPL-2.0"
depends=""
makedepends="efivar-dev linux-headers popt-dev gettext-dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/rhboot/efibootmgr/releases/download/$pkgver/efibootmgr-$pkgver.tar.bz2
	musl-gettext.patch"
builddir="$srcdir/efibootmgr-$pkgver"

build() {
	cd "$builddir"
	PCDIR=/usr/lib/pkgconfig EFIDIR="/boot/efi" make
}

package() {
	cd "$builddir"
	EFIDIR="/boot/efi" make DESTDIR="$pkgdir" install
}

check() {
	"$builddir"/src/efibootdump --help > /dev/null
	"$builddir"/src/efibootmgr --help > /dev/null
}

sha512sums="936318c7163c07b716f89be3d830957d9db68ba1b059223f7ea3d9eafe0dbf1c91b9aee096f5aed70955c6052c3b8547295c0a47f17cdf43788259d87d1990b9  efibootmgr-16.tar.bz2
3ed49c6d267e6f14bf43207fecb55ebc984f6fbd15d77cd1b8f466c8d0a4c3ab9bb276e8ed183b5ab0129fde5c06ffcd0450ffb7dad0edfa18b4c472e481373b  musl-gettext.patch"