summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50b50c41404939f86480f5e990614aa4ded06f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#Maintainer: VerruckteFuchs <derverrucktefuchs@gmail.com>
pkgname=ectool-samus-git
_gitname=ectool
pkgver=2.0.0.2436.gced60ee210
pkgrel=1
pkgdesc="ectool for Chromebook Pixel 2015 for controlling lightbar and fans."
arch=(i686 x86_64)
url="https://chromium.googlesource.com/chromiumos/platform/ec"
provides=('ectool')
depends=('arm-none-eabi-gcc' 'libftdi' 'libftdi-compat')
license=('BSD')
source=(git+https://chromium.googlesource.com/chromiumos/platform/ec)
sha1sums=('SKIP')

pkgver() {
    cd "${srcdir}/ec"
    git describe --tags | sed -e 's:v::' -e 's/-/./g'
}

build() {
  cd "$srcdir/ec"
  sed -i "s/-Werror / /g" Makefile.toolchain
  make utils PREFIX=/usr -j5 BOARD=samus
}

package() {
  cd "$srcdir/ec"
  install -Dm755 "$srcdir/ec/build/samus/util/ectool" "$pkgdir/usr/bin/ectool"
  
# install license
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
}