void-packages/srcpkgs/efivar/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

44 lines
1.1 KiB
Bash

# Template file for 'efivar'
pkgname=efivar
version=37
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
short_desc="Tools to manipulate EFI variables"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/rhinstaller/efivar"
distfiles="https://github.com/rhboot/efivar/releases/download/${version}/efivar-${version}.tar.bz2"
checksum=3c67feb93f901b98fbb897d5ca82931a6698b5bcd6ac34f0815f670d77747b9f
make_build_args="libdir=/usr/lib"
make_build_target="all test"
make_install_args="libdir=/usr/lib"
CFLAGS="-D_GNU_SOURCE -Wno-error=address-of-packed-member"
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="libefivar-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}