2014-06-10 08:51:12 +00:00
|
|
|
# Template file for 'efivar'
|
|
|
|
pkgname=efivar
|
2014-11-01 07:43:25 +00:00
|
|
|
version=0.15
|
|
|
|
revision=1
|
2014-06-10 08:51:12 +00:00
|
|
|
build_style=gnu-configure
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="git"
|
2014-06-10 08:51:12 +00:00
|
|
|
makedepends="popt-devel"
|
|
|
|
short_desc="Tools to manipulate EFI variables"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
homepage="https://github.com/vathpela/efivar"
|
|
|
|
|
2014-06-10 08:53:28 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
|
2014-06-10 08:51:12 +00:00
|
|
|
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
|
2014-06-10 08:53:28 +00:00
|
|
|
sed "s|-O0|${CFLAGS}|g" -i Make.defaults
|
2014-06-10 08:51:12 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
2014-06-10 08:53:28 +00:00
|
|
|
make CC=$CC libdir="/usr/lib/" bindir="/usr/bin/" \
|
2014-06-10 08:51:12 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|