Initial package

master
Cole Deck 3 years ago
commit 10e8c6361f

@ -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

@ -0,0 +1,34 @@
#Maintainer: VerruckteFuchs <derverrucktefuchs@gmail.com>
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"
}
Loading…
Cancel
Save