aboutsummaryrefslogtreecommitdiffstats
path: root/testing/efivar/APKBUILD
blob: 10c982998ad3e5c3fc6ba19425584ff9f5b69fe6 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=efivar
pkgver=31
pkgrel=0
pkgdesc="Tools and library to manipulate EFI variables"
url="https://github.com/rhboot/efivar"
arch="x86_64 armhf aarch64"
license="LGPL-2.1"
depends=""
depends_dev=""
makedepends="$depends_dev popt-dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://github.com/rhboot/efivar/releases/download/$pkgver/efivar-$pkgver.tar.bz2
	musl-bswap.patch
	musl-strndupa.patch"
builddir="$srcdir/efivar-$pkgver"

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

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

check() {
	ln -s "$builddir"/src/libefivar.so \
		"$builddir"/src/libefivar.so.1 
	LD_LIBRARY_PATH="$builddir"/src \
		"$builddir"/src/efivar --help > /dev/null
}

sha512sums="5055f690fd99cf59895dcf3d11103494d917d4923567626f0bee816ea5e4dd56cec23627ede5f21bdc57b7306522471ad19cc8ab22ae94591dbd1925c084f163  efivar-31.tar.bz2
84fd5baf91df91889cfcfed2bcf59f073dc754f6aba1944059203bbe99f4bbb6dc92addff9fae8f687a2c95f9438b0eb301dd0320728a8a2a6edd5e2b2b5ba94  musl-bswap.patch
d7c0ed2cbb4e3b93921ef5adad9667d2a2f18bc5da8d4dba71edb5b424c68c24e9d1c495d4dcccc1cd563cdfdc598308a74ae5b4d4ed78ff4391f4456554a18a  musl-strndupa.patch"