2014-06-10 10:51:12 +02:00
|
|
|
# Template file for 'efivar'
|
|
|
|
pkgname=efivar
|
2015-08-30 02:01:47 +02:00
|
|
|
version=0.21
|
|
|
|
revision=1
|
2014-06-10 10:51:12 +02:00
|
|
|
makedepends="popt-devel"
|
|
|
|
short_desc="Tools to manipulate EFI variables"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-10 10:51:12 +02:00
|
|
|
license="LGPL-2.1"
|
2015-08-30 02:01:47 +02:00
|
|
|
homepage="https://github.com/rhinstaller/efivar"
|
2014-12-28 10:42:05 +01:00
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
2015-08-30 02:01:47 +02:00
|
|
|
distfiles="https://github.com/rhinstaller/efivar/releases/download/${version}/efivar-${version}.tar.bz2"
|
|
|
|
checksum=04b9b9de9d9a1a013395400438a033daf4a4290f497ec5be04a120e2ac535094
|
2014-06-10 10:53:28 +02:00
|
|
|
|
2014-06-10 10:51:12 +02:00
|
|
|
do_build() {
|
2015-08-30 02:01:47 +02:00
|
|
|
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile
|
|
|
|
make CC=$CC libdir="/usr/lib/"
|
2014-06-10 10:51:12 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-08-30 02:01:47 +02:00
|
|
|
make DESTDIR=${DESTDIR} libdir="/usr/lib/" install
|
|
|
|
vbin src/test/tester efivar-tester
|
2014-06-10 10:51:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|