summaryrefslogtreecommitdiff
path: root/repo/i2c-tools
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/i2c-tools
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/i2c-tools')
-rw-r--r--repo/i2c-tools/i2c-tools.xibuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/repo/i2c-tools/i2c-tools.xibuild b/repo/i2c-tools/i2c-tools.xibuild
index dd907af..27a8e72 100644
--- a/repo/i2c-tools/i2c-tools.xibuild
+++ b/repo/i2c-tools/i2c-tools.xibuild
@@ -3,12 +3,14 @@
NAME="i2c-tools"
DESC="Tools for monitoring I2C devices"
-MAKEDEPS="linux-headers python"
+MAKEDEPS=" linux-headers python"
+DEPS="python"
PKG_VER=4.3
SOURCE="https://fossies.org/linux/misc/i2c-tools-$PKG_VER.tar.gz"
prepare() {
+ apply_patches
sed -e "s|^DESTDIR.*|DESTDIR = \"$PKG_DEST\"|" \
-e "s|^prefix.*|prefix = /usr|" \
-e "s|^PREFIX.*|PREFIX = /usr|" \
@@ -18,14 +20,19 @@ prepare() {
build() {
make
- cd "$BUILD_ROOT"/py-smbus
+ cd py-smbus
CFLAGS="$CFLAGS -I$BUILD_ROOT/include" python3 setup.py build
+ cd ..
}
package() {
make install
- cd "$BUILD_ROOT"/py-smbus
+ install -d "$PKG_DEST"/usr/lib
+ mv "$PKG_DEST"/usr/lib/python3* "$PKG_DEST"/usr/lib
+
+ cd py-smbus
python3 setup.py install --prefix=/usr --root="$PKG_DEST"
+
}