Date: Saturday, August 12, 2017 @ 14:23:06
  Author: jelle
Revision: 250002

Fix FS#54891

Add smbus python3 support, update to 3.1.2

Modified:
  i2c-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-08-12 14:17:58 UTC (rev 250001)
+++ PKGBUILD    2017-08-12 14:23:06 UTC (rev 250002)
@@ -3,20 +3,19 @@
 # Contributor: DonVla <don...@users.sourceforge.net>
 
 pkgname=i2c-tools
-pkgver=3.1.1
-pkgrel=2
+pkgver=3.1.2
+pkgrel=1
 pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of 
lm-sensors"
 arch=('i686' 'x86_64')
 url="http://www.lm-sensors.org/wiki/I2CTools";
 license=('GPL')
 depends=('perl')
-makedepends=('python2')
+makedepends=('python2' 'python')
 optdepends=('read-edid: for decode-edid script'
+            'python: for smbus module'
             'python2: for smbus module')
-# Upstream website died...
-# XXX: should become https://sources.archlinux.org/other/community/i2c-tools/
-source=(https://pkgbuild.com/~jelle/sources/i2c-tools-3.1.1.tar.bz2)
-md5sums=('0fdbff53ebd0b8d9249256d6c56480b1')
+source=("http://http.debian.net/debian/pool/main/i/i2c-tools/i2c-tools_3.1.2.orig.tar.bz2";)
+md5sums=('7104a1043d11a5e2c7b131614eb1b962')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -23,6 +22,7 @@
   make
   make -C eepromer CFLAGS="$CFLAGS -I../include"
   cd py-smbus
+  CPPFLAGS="$CPPFLAGS -I../include" python setup.py build
   CPPFLAGS="$CPPFLAGS -I../include" python2 setup.py build
 }
 
@@ -31,6 +31,7 @@
   make prefix="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
   install -Dm755 eepromer/eeprog eepromer/eeprom eepromer/eepromer 
"${pkgdir}/usr/bin"
   cd py-smbus
+  python setup.py install --prefix "${pkgdir}/usr"
   python2 setup.py install --prefix "${pkgdir}/usr"
   rm -rf "${pkgdir}/usr/include"
 }

Reply via email to