aboutsummaryrefslogtreecommitdiffstats
path: root/main/efivar/APKBUILD
blob: c445a77453acd57d67027a5b9eb6eba13c02dccd (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
35
36
37
38
39
40
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=efivar
pkgver=38
pkgrel=0
pkgdesc="Tools and library to manipulate EFI variables"
url="https://github.com/rhboot/efivar"
arch="x86 x86_64 armhf armv7 aarch64 ppc64le"
license="LGPL-2.1"
makedepends="popt-dev linux-headers mandoc"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://github.com/rhboot/efivar/releases/download/$pkgver/efivar-$pkgver.tar.bz2
	musl-compat.patch
	ppc64le-compat.patch"
builddir="$srcdir/efivar-$pkgver"

prepare() {
	default_prepare
	sed -i 's/#include <sys\/cdefs.h>//g' "$builddir/src/compiler.h"
}

build() {
	cd "$builddir"
	libdir="/usr/lib" make
}

package() {
	cd "$builddir"
	libdir="/usr/lib" make DESTDIR="$pkgdir" install
}

check() {
	LD_LIBRARY_PATH="$builddir"/src \
		"$builddir"/src/efivar --help > /dev/null
}
sha512sums="
c2f17297c863ece134a9dd758d237fd2df8c8d072f87af1d0bf2bcf9acfc7a53c25597f03fd4fb8cc664b205743d4ffa0ef1b068d0f73c58fa573d40993f3155  efivar-38.tar.bz2
1a1dfd66a5b613167eeedafe3f2728a0e644cb89860c3dad5955cbaba254ecde617e05d969eeac50be443d090136cbfec626f878f49eea2458b6b8ca17287bd4  musl-compat.patch
77e04d2df6797faef478bde4f591dc728a90ad27a55f4a26bb3b0f427a2dd31de0b97272a176e79880125fdc2cdd1eff184c9c80c4fedb40c4304f633691d13b  ppc64le-compat.patch
"