2018-08-06 23:39:21 +00:00
|
|
|
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
|
|
|
|
# Contributor: DonVla <donvla@users.sourceforge.net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - !makeflags because concurrency fails
|
|
|
|
|
|
|
|
pkgname=i2c-tools
|
2019-01-11 19:44:39 +00:00
|
|
|
pkgver=4.1
|
2019-11-14 13:58:42 +00:00
|
|
|
pkgrel=3
|
2018-08-06 23:39:21 +00:00
|
|
|
pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.lm-sensors.org/wiki/I2CTools"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('perl')
|
2019-08-17 17:55:16 +00:00
|
|
|
makedepends=('python' 'git')
|
2018-08-06 23:39:21 +00:00
|
|
|
optdepends=('read-edid: for decode-edid script'
|
2019-08-17 17:55:16 +00:00
|
|
|
'python: for smbus module')
|
|
|
|
options=('!makeflags')
|
2018-08-06 23:39:21 +00:00
|
|
|
_commit=629185af1552b1866052c6973c930f1a26992dfc
|
|
|
|
source=("git+https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
make
|
|
|
|
make -C eepromer CFLAGS="$CFLAGS -I../include"
|
|
|
|
cd py-smbus
|
|
|
|
CPPFLAGS="$CPPFLAGS -I../include" python setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
make prefix="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
|
|
|
|
install -Dm755 eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/bin"
|
|
|
|
cd py-smbus
|
|
|
|
python setup.py install --prefix "${pkgdir}/usr"
|
|
|
|
rm -rf "${pkgdir}/usr/include"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|