diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-10-05 06:45:54 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-10-05 06:46:26 -0300 |
commit | 64b6f7fb1495477a091406f40dc18de805241f8d (patch) | |
tree | 470a1f247dbcc8d30392b7334250615ba331f615 /libre/vboot-utils | |
parent | 1a6e546cdd1121cba96754540544f32b2a87d487 (diff) | |
download | abslibre-64b6f7fb1495477a091406f40dc18de805241f8d.tar.gz abslibre-64b6f7fb1495477a091406f40dc18de805241f8d.tar.bz2 abslibre-64b6f7fb1495477a091406f40dc18de805241f8d.zip |
vboot-utils: add pkg
Diffstat (limited to 'libre/vboot-utils')
-rw-r--r-- | libre/vboot-utils/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/vboot-utils/PKGBUILD b/libre/vboot-utils/PKGBUILD new file mode 100644 index 000000000..38e5254a4 --- /dev/null +++ b/libre/vboot-utils/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org +# Contributor: Justin Settle <jus10 at partlycloudy dot org> + +buildarch=4 + +pkgname=vboot-utils +pkgver=r1444.f843871 +pkgrel=1 +arch=('armv7h') +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') +source=("git+https://chromium.googlesource.com/chromiumos/platform/vboot_reference") +md5sums=('SKIP') + +pkgver() { + cd vboot_reference + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd vboot_reference + # 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 +} |