From 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 15 Jul 2022 00:52:21 +0100 Subject: added python deps for libvirt --- repo/i2c-tools/i2c-tools.xibuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'repo/i2c-tools') 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" + } -- cgit v1.2.1