# 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 " 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 } }