2015-05-05 00:39:01 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org
|
|
|
|
# Contributor: Justin Settle <jus10 at partlycloudy dot org>
|
|
|
|
|
2016-10-29 15:20:23 +00:00
|
|
|
buildarch=12
|
2015-05-05 00:39:01 +00:00
|
|
|
|
|
|
|
pkgname=vboot-utils
|
2018-03-18 21:10:18 +00:00
|
|
|
pkgver=r1908.4c84e0778
|
2015-05-05 00:39:01 +00:00
|
|
|
pkgrel=1
|
2016-10-29 15:20:23 +00:00
|
|
|
arch=('armv7h' 'aarch64')
|
2015-05-05 00:39:01 +00:00
|
|
|
pkgdesc="Chromium OS vboot utilities"
|
|
|
|
url="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/master"
|
|
|
|
license=('custom:chromiumos')
|
|
|
|
makedepends=('libyaml' 'git')
|
|
|
|
provides=('cgpt')
|
|
|
|
replaces=('cgpt')
|
2018-03-18 21:10:18 +00:00
|
|
|
source=("git+https://chromium.googlesource.com/chromiumos/platform/vboot_reference"
|
|
|
|
'0001-Remove-static-futility.patch')
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'4623286d277f73b0a5ae04c30174e520')
|
2015-05-05 00:39:01 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd vboot_reference
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd vboot_reference
|
2018-03-18 21:10:18 +00:00
|
|
|
git apply ../0001-Remove-static-futility.patch
|
2015-05-05 00:39:01 +00:00
|
|
|
# remove -Werror to prevent build failure
|
|
|
|
sed -i 's/-Werror//g' Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd vboot_reference
|
|
|
|
ARCH=arm make V=1
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd vboot_reference
|
|
|
|
make DESTDIR="${pkgdir}/usr" install
|
|
|
|
}
|