f752c233a7
Closes: #12013 [via git-merge-pr]
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'efivar'
|
|
pkgname=efivar
|
|
version=34
|
|
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"
|
|
short_desc="Tools to manipulate EFI variables"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/rhinstaller/efivar"
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
distfiles="https://github.com/rhboot/efivar/releases/download/${version}/efivar-${version}.tar.bz2"
|
|
checksum=1b7e34e728b4b4c294a10734e601212e4c31ce4cf409e27d1d630daa8d0f4325
|
|
|
|
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
|
|
}
|
|
}
|