efivar: add distfiles+checksum

This commit is contained in:
Andrea Brancaleoni 2015-07-27 00:52:47 +02:00
parent 2439e06a30
commit 9b5bcabc6b

View file

@ -1,9 +1,8 @@
# Template file for 'efivar' # Template file for 'efivar'
pkgname=efivar pkgname=efivar
version=0.15 version=0.15
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="git"
makedepends="popt-devel" makedepends="popt-devel"
short_desc="Tools to manipulate EFI variables" short_desc="Tools to manipulate EFI variables"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -12,9 +11,9 @@ homepage="https://github.com/vathpela/efivar"
only_for_archs="i686 i686-musl x86_64 x86_64-musl" only_for_archs="i686 i686-musl x86_64 x86_64-musl"
do_fetch() { distfiles="https://github.com/rhinstaller/$pkgname/archive/$version.tar.gz"
git clone -b ${version} git://github.com/vathpela/efivar ${pkgname}-${version} checksum=8e5a45ebbd116a96a43176e96b211c73f3ec8452da3bd0ce75a5716f86d4343f
}
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|${CFLAGS}|g" -i Make.defaults sed "s|-O0|${CFLAGS}|g" -i Make.defaults