efivar: use our CFLAGS; only for x86.
This commit is contained in:
parent
6fad0fcbb5
commit
0121aa11d8
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'efivar'
|
# Template file for 'efivar'
|
||||||
pkgname=efivar
|
pkgname=efivar
|
||||||
version=0.10
|
version=0.10
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
makedepends="popt-devel"
|
makedepends="popt-devel"
|
||||||
short_desc="Tools to manipulate EFI variables"
|
short_desc="Tools to manipulate EFI variables"
|
||||||
|
@ -9,15 +9,17 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
homepage="https://github.com/vathpela/efivar"
|
homepage="https://github.com/vathpela/efivar"
|
||||||
|
|
||||||
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
git clone -b ${version} git://github.com/vathpela/efivar ${pkgname}-${version}
|
git clone -b ${version} git://github.com/vathpela/efivar ${pkgname}-${version}
|
||||||
}
|
}
|
||||||
do_configure() {
|
do_configure() {
|
||||||
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile
|
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile
|
||||||
sed 's|-O0||g' -i Make.defaults
|
sed "s|-O0|${CFLAGS}|g" -i Make.defaults
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make libdir="/usr/lib/" bindir="/usr/bin/" \
|
make CC=$CC libdir="/usr/lib/" bindir="/usr/bin/" \
|
||||||
mandir="/usr/share/man/" includedir="/usr/include/" V=1
|
mandir="/usr/share/man/" includedir="/usr/include/" V=1
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Reference in New Issue