# Contributor: DonVla <donvla@users.sourceforge.net>

pkgname=i2c-tools
pkgver=3.0.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=('lm_sensors' 'perl' 'read-edid')
options=(strip)
source=(http://dl.lm-sensors.org/$pkgname/releases/$pkgname-$pkgver.tar.bz2 Makefile.patch)
md5sums=('b546345ac19db56719dea6b8199f11e0' '49d17834f9d7e68407ec46785e47bb94')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p0 < $startdir/Makefile.patch
  make || return 1
  make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et: