summaryrefslogtreecommitdiff
path: root/repo/i2c-tools
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/i2c-tools
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/i2c-tools')
-rw-r--r--repo/i2c-tools/i2c-tools.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/i2c-tools/i2c-tools.xibuild b/repo/i2c-tools/i2c-tools.xibuild
new file mode 100644
index 0000000..dd907af
--- /dev/null
+++ b/repo/i2c-tools/i2c-tools.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="i2c-tools"
+DESC="Tools for monitoring I2C devices"
+
+MAKEDEPS="linux-headers python"
+
+PKG_VER=4.3
+SOURCE="https://fossies.org/linux/misc/i2c-tools-$PKG_VER.tar.gz"
+
+prepare() {
+ sed -e "s|^DESTDIR.*|DESTDIR = \"$PKG_DEST\"|" \
+ -e "s|^prefix.*|prefix = /usr|" \
+ -e "s|^PREFIX.*|PREFIX = /usr|" \
+ -i Makefile
+}
+
+build() {
+ make
+
+ cd "$BUILD_ROOT"/py-smbus
+ CFLAGS="$CFLAGS -I$BUILD_ROOT/include" python3 setup.py build
+}
+
+package() {
+ make install
+
+ cd "$BUILD_ROOT"/py-smbus
+ python3 setup.py install --prefix=/usr --root="$PKG_DEST"
+}
+