void-packages/srcpkgs/efivar/template
maxice8 d16d21060a efivar: update to 32.
- Remove musl specific file and patch, opt for using Alpine patch that
works on both musl and glibc, this also cleans the 'case esac' on
do_build()
- Remove sed on Make.rules that add -lpopt, we add 'pkg-config' to
hostmakedepends since the Makefile uses it to find the popt-devel flags
- add patch from upstream commit that fixes the location of efivar.h on
'src/test/tester.c'
- Change build-style to gnu-makefile

Closes: #10128 [via git-merge-pr]
2017-12-28 15:32:44 +01:00

44 lines
1.1 KiB
Bash

# Template file for 'efivar'
pkgname=efivar
version=32
revision=1
build_style=gnu-makefile
make_build_args="libdir=/usr/lib"
make_build_target="all test"
make_install_args="libdir=/usr/lib"
hostmakedepends="pkg-config"
makedepends="popt-devel"
short_desc="Tools to manipulate EFI variables"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://github.com/rhinstaller/efivar"
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
distfiles="https://github.com/rhinstaller/efivar/archive/${version}/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=44e3db4241c14dfc167dd5bf8c399ef41a7bf966cbc49519694d605f3c843420
CFLAGS="-D_GNU_SOURCE"
post_build() {
make -C src/test
}
post_install() {
vbin src/test/tester efivar-tester
}
libefivar_package() {
short_desc="Library to manipulate EFI variables"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libefivar-devel_package() {
short_desc="Library to manipulate EFI variables - development files"
depends="${makedepends} libefivar>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}