PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Maintainer (archarm): Kevin Mihelich <kevin@archlinuxarm.org
  2. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. buildarch=12
  4. pkgname=vboot-utils
  5. pkgver=r1908.4c84e0778
  6. pkgrel=1
  7. arch=('armv7h')
  8. pkgdesc="Chromium OS vboot utilities"
  9. url="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/master"
  10. license=('custom:chromiumos')
  11. makedepends=('libyaml' 'git')
  12. provides=('cgpt')
  13. replaces=('cgpt')
  14. _commit=4c84e077858c809ee80a9a6f9b38185cf7dcded7
  15. source=("git+https://chromium.googlesource.com/chromiumos/platform/vboot_reference#commit=${_commit}"
  16. '0001-Remove-static-futility.patch')
  17. md5sums=('SKIP'
  18. '4623286d277f73b0a5ae04c30174e520')
  19. pkgver() {
  20. cd vboot_reference
  21. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  22. }
  23. prepare() {
  24. cd vboot_reference
  25. git apply ../0001-Remove-static-futility.patch
  26. # remove -Werror to prevent build failure
  27. sed -i 's/-Werror//g' Makefile
  28. }
  29. build() {
  30. cd vboot_reference
  31. ARCH=arm make V=1
  32. }
  33. package() {
  34. cd vboot_reference
  35. make DESTDIR="${pkgdir}/usr" install
  36. }