PKGBUILDs/alarm/ec-utils/PKGBUILD

28 lines
647 B
Bash
Raw Normal View History

2015-06-27 00:11:18 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
pkgname=ec-utils
2018-03-18 20:31:14 +00:00
pkgver=8666.25039a3ba1
2015-06-27 00:11:18 +00:00
pkgrel=1
pkgdesc="Chromium OS Embedded Controller utilities"
2017-01-12 02:40:44 +00:00
arch=('armv7h' 'aarch64')
2015-10-30 01:14:24 +00:00
makedepends=('git' 'inetutils')
2015-06-27 00:11:18 +00:00
license=('custom:chromiumos')
2017-01-12 02:35:58 +00:00
source=("git+https://chromium.googlesource.com/chromiumos/platform/ec")
2015-06-27 00:11:18 +00:00
md5sums=('SKIP')
2017-01-12 02:35:58 +00:00
pkgver() {
2016-02-08 01:02:10 +00:00
cd ec
2017-01-12 02:35:58 +00:00
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
2015-06-27 00:11:18 +00:00
}
build() {
cd ec
2017-01-12 02:35:58 +00:00
CCACHE= HOST_CROSS_COMPILE= make utils-host
2015-06-27 00:11:18 +00:00
}
package() {
cd ec
install -dm755 ${pkgdir}/usr/bin
install -m755 build/bds/util/{ectool,lbplay,stm32mon,ec_sb_firmware_update,lbcc} ${pkgdir}/usr/bin
}