From f34f5f1e018f7d088dde93ae7900025c45cabcc2 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 9 Sep 2019 10:47:54 +0000 Subject: community/i2c-tools: moved from testing, smbus now uses python3 --- testing/i2c-tools/APKBUILD | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 testing/i2c-tools/APKBUILD (limited to 'testing/i2c-tools/APKBUILD') diff --git a/testing/i2c-tools/APKBUILD b/testing/i2c-tools/APKBUILD deleted file mode 100644 index bd7360ae11..0000000000 --- a/testing/i2c-tools/APKBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Contributor: Leonardo Arena -# Maintainer: Francesco Colista -pkgname=i2c-tools -pkgver=4.1 -pkgrel=0 -pkgdesc="Tools for monitoring I2C devices" -url="http://www.lm-sensors.org/wiki/I2CTools" -arch="all" -license="GPL-2.0" -makedepends="linux-headers py-setuptools python2-dev" -subpackages="$pkgname-dev $pkgname-doc py-smbus:py" -source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz" - -builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$builddir" - sed -i "s|^DESTDIR.*|DESTDIR = \"$pkgdir\"|" Makefile - sed -i "s|^prefix.*|prefix = /usr|" Makefile - sed -i "s|^PREFIX.*|PREFIX = /usr|" Makefile -} - -build() { - cd "$builddir" - make - - cd "$builddir"/py-smbus - CFLAGS="$CFLAGS -I${builddir}/include" python2 setup.py build -} - -py() { - pkgdesc="$pkgname python bindings" - mkdir -p "$subpkgdir/usr/lib/python2.7/site-packages" - mv "$pkgdir"/usr/lib/python2.7/* $subpkgdir/usr/lib/python2.7 -} - -package() { - cd "$builddir" - make install - - cd "$builddir"/py-smbus - python2 setup.py install --prefix=/usr --root="$pkgdir" -} - -sha512sums="e0dc3e8d9372658ee132332d695b9ad8537cddb63362e1b860b66d07516f33f50d3b67fbaf9769ba4affc1e20513522bfbd92f327c5c060b62be99c527609df6 i2c-tools-4.1.tar.gz" -- cgit v1.2.3