summaryrefslogtreecommitdiff
path: root/community/i2c-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
committerroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
commite0f65a739c6445de07de1585e72c230958d8f011 (patch)
treed6cfcd449768dbc82f5d5d539ea02333340652b7 /community/i2c-tools
parent2aa5510e030a6ac8ec723dfd915a394b888e21c1 (diff)
Sat Jul 14 00:01:45 UTC 2012
Diffstat (limited to 'community/i2c-tools')
-rw-r--r--community/i2c-tools/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/i2c-tools/PKGBUILD b/community/i2c-tools/PKGBUILD
new file mode 100644
index 000000000..679dad5ca
--- /dev/null
+++ b/community/i2c-tools/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 73640 2012-07-12 13:05:49Z tredaelli $
+# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: DonVla <donvla@users.sourceforge.net>
+
+pkgname=i2c-tools
+pkgver=3.1.0
+pkgrel=3
+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=('python2')
+optdepends=('read-edid: for decode-edid script')
+source=(http://dl.lm-sensors.org/${pkgname}/releases/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('f15019e559e378c6e9d5d6299a00df21')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make
+ make -C eepromer CFLAGS="$CFLAGS -I../include"
+ cd py-smbus
+ CPPFLAGS="$CPPFLAGS -I../include" python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make prefix="${pkgdir}/usr" install
+ install -Dm755 eepromer/eeprog eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/sbin"
+ cd py-smbus
+ python2 setup.py install --prefix "${pkgdir}/usr"
+ rm -rf "${pkgdir}/usr/include"
+}
+
+# vim:set ts=2 sw=2 et: