aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNulo <git@nulo.in>2021-11-26 20:20:25 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-11-30 00:26:30 +0000
commit47ba08875d4504f9abd4b05e22785e743dd11939 (patch)
tree66f7bd0f9bd1b43536f68163dd00ae980f7933d9
parent8a7ca4fbbd36df638ac4f8b280055797c9368dce (diff)
downloadaports-47ba08875d4504f9abd4b05e22785e743dd11939.tar.gz
aports-47ba08875d4504f9abd4b05e22785e743dd11939.tar.bz2
aports-47ba08875d4504f9abd4b05e22785e743dd11939.tar.xz
testing/coreboot-ectool: new aport
-rw-r--r--testing/coreboot-ectool/APKBUILD26
-rw-r--r--testing/coreboot-ectool/fix-makefile.patch22
2 files changed, 48 insertions, 0 deletions
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 <alpine@nulo.in>
+# Mantainer: Nulo <alpine@nulo.in>
+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