From 47ba08875d4504f9abd4b05e22785e743dd11939 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 26 Nov 2021 20:20:25 -0300 Subject: testing/coreboot-ectool: new aport --- testing/coreboot-ectool/APKBUILD | 26 ++++++++++++++++++++++++++ testing/coreboot-ectool/fix-makefile.patch | 22 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 testing/coreboot-ectool/APKBUILD create mode 100644 testing/coreboot-ectool/fix-makefile.patch diff --git a/testing/coreboot-ectool/APKBUILD b/testing/coreboot-ectool/APKBUILD new file mode 100644 index 0000000000..f625ccf827 --- /dev/null +++ b/testing/coreboot-ectool/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Nulo +# Mantainer: Nulo +pkgname=coreboot-ectool +pkgver=4.14 +pkgrel=0 +pkgdesc="Dumps the RAM of a laptop’s Embedded/Environmental Controller (EC)." +url="https://www.coreboot.org" +arch="x86 x86_64" # Uses inline assembly. +license="GPL-2.0-only" +options="!check" # No test suite. +source="https://coreboot.org/releases/coreboot-$pkgver.tar.xz + fix-makefile.patch" +builddir="$srcdir/coreboot-$pkgver/util/ectool/" + +build() { + make +} + +package() { + make DESTDIR="$pkgdir" PREFIX=/usr install +} + +sha512sums=" +14c615472dfe00682e4b0b41b6a04ed3b201395427350f7b53497152f2acc8cbef8144bad06517b413c4076422108bccab2e4732491f5e6fcc4703b14d062b19 coreboot-4.14.tar.xz +44f16ca9824e873d598d87c39216d3390954dc152f85f59d76b58086abfd0481161778cb08eb72f1f3a3d7022319aaabb96a2f07736782713170f2e760b989dd fix-makefile.patch +" diff --git a/testing/coreboot-ectool/fix-makefile.patch b/testing/coreboot-ectool/fix-makefile.patch new file mode 100644 index 0000000000..f0ac8a22f5 --- /dev/null +++ b/testing/coreboot-ectool/fix-makefile.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile b/Makefile +index 1ef74d2..94cf3c0 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ CC = gcc + WERROR=-Werror + CFLAGS = -O2 -Wall -Wextra -Wshadow $(WERROR) + PROGRAM = ectool +-INSTALL = /usr/bin/env install ++INSTALL = /usr/bin/env install -D + PREFIX = /usr/local + OS_ARCH = $(shell uname) + +@@ -22,7 +22,7 @@ $(PROGRAM): ec.o ectool.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + + install: $(PROGRAM) +- $(INSTALL) $(PROGRAM) $(PREFIX)/sbin ++ $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin/$(PROGRAM) + + clean: + rm -f *.o $(PROGRAM) junit.xml -- cgit v1.2.3