summaryrefslogtreecommitdiff
path: root/repo/dmidecode
diff options
context:
space:
mode:
Diffstat (limited to 'repo/dmidecode')
-rw-r--r--repo/dmidecode/dmidecode.xibuild23
1 files changed, 23 insertions, 0 deletions
diff --git a/repo/dmidecode/dmidecode.xibuild b/repo/dmidecode/dmidecode.xibuild
new file mode 100644
index 0000000..1ab5186
--- /dev/null
+++ b/repo/dmidecode/dmidecode.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="dmidecode"
+DESC="A utility for reporting system hardware as described by BIOS"
+
+MAKEDEPS=""
+
+PKG_VER=3.3
+SOURCE="https://download.savannah.gnu.org/releases/dmidecode/dmidecode-$PKG_VER.tar.xz"
+
+prepare() {
+ apply_patches
+ sed -e '/^PROGRAMS !=/d' -e 's/-O2/-Os/' -i Makefile
+}
+
+build() {
+ make prefix=/usr
+}
+
+package() {
+ make prefix=/usr DESTDIR="$PKG_DEST" install
+}
+