39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'efivar'
|
|
pkgname=efivar
|
|
version=0.21
|
|
revision=1
|
|
build_pie=yes
|
|
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/releases/download/${version}/efivar-${version}.tar.bz2"
|
|
checksum=04b9b9de9d9a1a013395400438a033daf4a4290f497ec5be04a120e2ac535094
|
|
|
|
do_build() {
|
|
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile
|
|
make CC=$CC libdir="/usr/lib/"
|
|
}
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} libdir="/usr/lib/" 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
|
|
}
|
|
}
|