mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
29 lines
661 B
Bash
29 lines
661 B
Bash
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=12
|
|
|
|
pkgname=ec-utils
|
|
pkgver=8666.25039a3ba1
|
|
pkgrel=1
|
|
pkgdesc="Chromium OS Embedded Controller utilities"
|
|
arch=('armv7h' 'aarch64')
|
|
makedepends=('git' 'inetutils')
|
|
license=('custom:chromiumos')
|
|
source=("git+https://chromium.googlesource.com/chromiumos/platform/ec")
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd ec
|
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
|
}
|
|
|
|
build() {
|
|
cd ec
|
|
CCACHE= HOST_CROSS_COMPILE= make utils-host
|
|
}
|
|
|
|
package() {
|
|
cd ec
|
|
install -dm755 ${pkgdir}/usr/bin
|
|
install -m755 build/bds/util/{ectool,lbplay,stm32mon,ec_sb_firmware_update,lbcc} ${pkgdir}/usr/bin
|
|
}
|