PKGBUILDs/alarm/ec-utils/PKGBUILD

32 lines
700 B
Bash
Raw Normal View History

2015-06-27 00:11:18 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=ec-utils
2016-07-08 01:11:01 +00:00
pkgver=1.9.0
2015-06-27 00:11:18 +00:00
pkgrel=1
pkgdesc="Chromium OS Embedded Controller utilities"
arch=('armv7h')
2015-10-30 01:14:24 +00:00
makedepends=('git' 'inetutils')
2015-06-27 00:11:18 +00:00
license=('custom:chromiumos')
2016-07-08 01:11:01 +00:00
source=("git+https://chromium.googlesource.com/chromiumos/platform/ec#tag=v${pkgver}")
2015-06-27 00:11:18 +00:00
md5sums=('SKIP')
prepare() {
2016-02-08 01:02:10 +00:00
cd ec
sed -i 's/ccache //g' Makefile.toolchain
cd util
2015-06-27 00:11:18 +00:00
sed -i 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' stm32mon.c ec_uartd.c
}
build() {
cd ec
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
}