2015-06-16 12:38:22 +02:00
|
|
|
# Template file for 'vboot-utils'
|
|
|
|
pkgname=vboot-utils
|
|
|
|
version=44.7077
|
2015-06-16 12:52:13 +02:00
|
|
|
_githash=ea71df260e9041dd5260425dae3d6f5412516b9b
|
2015-06-16 13:25:54 +02:00
|
|
|
revision=3
|
2015-06-16 12:38:22 +02:00
|
|
|
build_style=gnu-makefile
|
2015-06-16 12:52:13 +02:00
|
|
|
hostmakedepends="pkg-config git"
|
2015-06-16 12:38:22 +02:00
|
|
|
makedepends="libressl-devel libuuid-devel"
|
|
|
|
short_desc="Verified boot kernel utilities"
|
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2015-06-16 12:45:14 +02:00
|
|
|
license="BSD"
|
2015-06-16 12:38:22 +02:00
|
|
|
homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git"
|
|
|
|
distfiles="$homepage/+archive/refs/heads/release-R${version//./-}.B.tar.gz"
|
2015-06-16 12:47:16 +02:00
|
|
|
checksum=67be2192c7db1e11d652a62d1472190764e336c758feb8db912b42d2cab70965
|
2015-06-16 12:38:22 +02:00
|
|
|
CFLAGS=-D_GNU_SOURCE
|
|
|
|
make_install_args="MINIMAL=1"
|
|
|
|
|
2015-06-16 12:52:13 +02:00
|
|
|
do_fetch() {
|
|
|
|
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
|
|
|
|
cd $pkgname-$version
|
|
|
|
git checkout $_githash
|
|
|
|
}
|
|
|
|
|
2015-06-16 12:38:22 +02:00
|
|
|
do_build() {
|
2015-06-16 13:07:20 +02:00
|
|
|
local _arch=
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
|
|
x86_64*) _arch=x86_64 ;;
|
|
|
|
i686*) _arch=x86 ;;
|
|
|
|
arm*) _arch=arm ;;
|
|
|
|
esac
|
|
|
|
make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" MINIMAL=1 ARCH=$_arch ${makejobs} \
|
2015-06-16 12:38:22 +02:00
|
|
|
cgpt utils futil
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
rm -r $DESTDIR/usr/lib/pkgconfig
|
2015-06-16 13:25:54 +02:00
|
|
|
vcopy tests/devkeys usr/share/vboot/devkeys
|
2015-06-16 12:38:22 +02:00
|
|
|
}
|