diff --git a/common/shlibs b/common/shlibs index 192ab6bf4e9..eda89348325 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1625,4 +1625,4 @@ libgtest_main.so gtest-1.7.0_1 libxmlsec1-gcrypt.so.1 xmlsec1-1.2.20_2 libxmlsec1-gnutls.so.1 xmlsec1-1.2.20_2 libr_crypto.so.0.9.7 radare2-0.9.7_3 - +libefivar.so.0 libefivar-0.10_1 diff --git a/srcpkgs/efivar/template b/srcpkgs/efivar/template new file mode 100644 index 00000000000..181409e408e --- /dev/null +++ b/srcpkgs/efivar/template @@ -0,0 +1,46 @@ +# Template file for 'efivar' +pkgname=efivar +version=0.10 +revision=1 +build_style=gnu-configure +makedepends="popt-devel" +short_desc="Tools to manipulate EFI variables" +maintainer="Juan RP " +license="LGPL-2.1" +homepage="https://github.com/vathpela/efivar" + +do_fetch() { + git clone -b ${version} git://github.com/vathpela/efivar ${pkgname}-${version} +} +do_configure() { + sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile + sed 's|-O0||g' -i Make.defaults +} +do_build() { + make libdir="/usr/lib/" bindir="/usr/bin/" \ + mandir="/usr/share/man/" includedir="/usr/include/" V=1 +} +do_install() { + make -j1 V=1 DESTDIR=${DESTDIR} libdir="/usr/lib/" \ + bindir="/usr/bin/" mandir="/usr/share/man/" \ + includedir="/usr/include/" install + vinstall src/test/tester 755 usr/bin 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 + } +} diff --git a/srcpkgs/libefivar b/srcpkgs/libefivar new file mode 120000 index 00000000000..a86d6800c6a --- /dev/null +++ b/srcpkgs/libefivar @@ -0,0 +1 @@ +efivar \ No newline at end of file diff --git a/srcpkgs/libefivar-devel b/srcpkgs/libefivar-devel new file mode 120000 index 00000000000..a86d6800c6a --- /dev/null +++ b/srcpkgs/libefivar-devel @@ -0,0 +1 @@ +efivar \ No newline at end of file