commit 10e8c6361fe30782eb6aa19c68b389c6ac522993 Author: Cole Deck Date: Sat Dec 25 17:50:49 2021 -0600 Initial package diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..88b3575 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = fw-ectool-git + pkgdesc = ectool for the Framework laptop. + pkgver = r21603.35580ec63 + pkgrel = 1 + url = https://chromium.googlesource.com/chromiumos/platform/ec + arch = x86_64 + license = BSD + makedepends = inetutils + provides = ectool + source = git+https://github.com/DHowett/fw-ectool + sha1sums = SKIP + +pkgname = fw-ectool-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1a9b5e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +#Maintainer: VerruckteFuchs +pkgname=fw-ectool-git +_gitname=fw-ectool +pkgver=r21603.35580ec63 +pkgrel=1 +pkgdesc="ectool for the Framework laptop." +arch=(x86_64) +url="https://chromium.googlesource.com/chromiumos/platform/ec" +provides=('ectool') +depends=() +makedepends=('inetutils') +license=('BSD') +source=(git+https://github.com/DHowett/fw-ectool) +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/fw-ectool" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/fw-ectool" + sed -i "s/-Werror / /g" Makefile.toolchain + make utils PREFIX=/usr +} + +package() { + cd "$srcdir/fw-ectool" + install -Dm755 "$srcdir/fw-ectool/build/bds/util/ectool" "$pkgdir/usr/bin/ectool" + printf "#!/bin/bash\n/usr/bin/ectool --interface=fwk \$@" > "$pkgdir/usr/bin/fw-ectool" + chmod +x "$pkgdir/usr/bin/fw-ectool" + # install license + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE" +}