diff options
author | James Meyer <james.meyer@operamail.com> | 2013-07-17 16:19:19 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-10-23 00:19:19 (GMT) |
commit | d32dd9c0df66e8896953de4334a97461042e851c (patch) | |
tree | b7a8510e55b8fd2e32b7d540061aef2ab71dddcf /abs | |
parent | 85d4c6d7272c21ec6dccc5d4bda36313cb70e30d (diff) | |
download | linhes_pkgbuild-d32dd9c0df66e8896953de4334a97461042e851c.zip linhes_pkgbuild-d32dd9c0df66e8896953de4334a97461042e851c.tar.gz linhes_pkgbuild-d32dd9c0df66e8896953de4334a97461042e851c.tar.bz2 |
i2c-tools: added package
closes #926
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/i2c-tools/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/abs/extra/i2c-tools/PKGBUILD b/abs/extra/i2c-tools/PKGBUILD new file mode 100644 index 0000000..448c745 --- /dev/null +++ b/abs/extra/i2c-tools/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 92028 2013-05-30 23:36:57Z seblu $ +# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com> +# Contributor: DonVla <donvla@users.sourceforge.net> + +pkgname=i2c-tools +pkgver=3.1.0 +pkgrel=5 +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" sbindir="$pkgdir/usr/bin" install + install -Dm755 eepromer/eeprog eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/bin" + cd py-smbus + python2 setup.py install --prefix "${pkgdir}/usr" + rm -rf "${pkgdir}/usr/include" +} + +# vim:set ts=2 sw=2 et: |