aboutsummaryrefslogtreecommitdiffstats
path: root/testing/efivar/APKBUILD
blob: 13892269910df856fa5e152717fd3bf5b5707ac2 (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: Lucas Ramage <ramage.lucas@openmailbox.org>
pkgname=efivar
pkgver=34
pkgrel=0
pkgdesc="Tools and library to manipulate EFI variables"
url="https://github.com/rhboot/efivar"
arch="x86 x86_64 armhf aarch64 ppc64le"
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="6baa02e1ad919f84d129a032a4631126d6f43dfc247f63c247624cc2af697fb627fd76fe0ffed069b42b835d862582877644fb19843361ef9ced62aa7cd518c4  efivar-34.tar.bz2
84fd5baf91df91889cfcfed2bcf59f073dc754f6aba1944059203bbe99f4bbb6dc92addff9fae8f687a2c95f9438b0eb301dd0320728a8a2a6edd5e2b2b5ba94  musl-bswap.patch
d7c0ed2cbb4e3b93921ef5adad9667d2a2f18bc5da8d4dba71edb5b424c68c24e9d1c495d4dcccc1cd563cdfdc598308a74ae5b4d4ed78ff4391f4456554a18a  musl-strndupa.patch"