void-packages/srcpkgs/vboot-utils/template

38 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-16 10:38:22 +00:00
# Template file for 'vboot-utils'
pkgname=vboot-utils
2015-07-21 16:37:36 +00:00
version=45.7262
revision=4
_githash=0e8c964915fffb58032bb59bdb31949de718ca90
hostmakedepends="pkg-config git"
2015-07-21 16:37:36 +00:00
makedepends="libressl-devel libuuid-devel liblzma-devel libyaml-devel"
2015-06-16 10:38:22 +00:00
short_desc="Verified boot kernel utilities"
maintainer="Enno Boland <gottox@voidlinux.eu>"
2015-06-16 10:45:14 +00:00
license="BSD"
2015-06-16 10:38:22 +00:00
homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git"
2015-07-21 17:28:25 +00:00
CFLAGS='-D_GNU_SOURCE -Wno-error'
do_fetch() {
2015-07-21 17:39:40 +00:00
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
cd $pkgname-$version
git checkout $_githash
}
2015-06-16 10:38:22 +00:00
do_build() {
2015-06-16 11:07:20 +00:00
local _arch=
2015-07-21 17:28:25 +00:00
sed -i "s/MTD_CHAR_MAJOR/90/" cgpt/cgpt_wrapper.c
2015-06-16 11:07:20 +00:00
case $XBPS_TARGET_MACHINE in
x86_64*) _arch=x86_64 ;;
i686*) _arch=x86 ;;
arm*) _arch=arm ;;
esac
2015-07-21 16:37:36 +00:00
make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
MINIMAL=1 ARCH=$_arch ${makejobs} \
2015-06-16 10:38:22 +00:00
cgpt utils futil
}
2015-07-21 16:37:36 +00:00
do_install() {
2015-07-21 17:28:25 +00:00
make STRIP=true DESTDIR=${DESTDIR}/usr MINIMAL=1 install
2015-07-21 16:37:36 +00:00
vmkdir usr/share/vboot
2015-06-16 11:25:54 +00:00
vcopy tests/devkeys usr/share/vboot/devkeys
2015-06-16 10:38:22 +00:00
}