2021-08-14 14:10:51 +00:00
|
|
|
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
|
|
|
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
|
2018-08-06 23:39:21 +00:00
|
|
|
# Contributor: DonVla <donvla@users.sourceforge.net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - !makeflags because concurrency fails
|
|
|
|
|
|
|
|
pkgname=i2c-tools
|
2024-10-21 23:13:13 +00:00
|
|
|
pkgver=4.4
|
|
|
|
pkgrel=1
|
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')
|
2020-08-14 18:22:24 +00:00
|
|
|
url="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
|
2018-08-06 23:39:21 +00:00
|
|
|
license=('GPL')
|
|
|
|
depends=('perl')
|
2024-04-27 15:32:14 +00:00
|
|
|
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
|
2020-08-14 18:22:24 +00:00
|
|
|
options=('!makeflags')
|
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')
|
2020-08-14 18:22:24 +00:00
|
|
|
source=(
|
|
|
|
"https://www.kernel.org/pub/software/utils/i2c-tools/$pkgname-$pkgver.tar.xz"
|
|
|
|
"https://www.kernel.org/pub/software/utils/i2c-tools/$pkgname-$pkgver.tar.sign"
|
2021-08-14 14:10:51 +00:00
|
|
|
"$pkgname.sysusers"
|
|
|
|
"45-i2c-tools.rules"
|
2020-08-14 18:22:24 +00:00
|
|
|
)
|
2024-10-21 23:13:13 +00:00
|
|
|
sha256sums=('8b15f0a880ab87280c40cfd7235cfff28134bf14d5646c07518b1ff6642a2473'
|
2021-08-14 14:10:51 +00:00
|
|
|
'SKIP'
|
|
|
|
'bf5ee4f9876505628c5ce84e84e918c70d66be70b766d62bb138e294608ffbae'
|
2024-04-27 15:32:14 +00:00
|
|
|
'af9dbdc771023cd04f5b0c638c30356e6a824b32f0c04ea61fe929c71122bccd')
|
2020-08-14 18:22:24 +00:00
|
|
|
validpgpkeys=(
|
|
|
|
'7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A' # Jean Delvare
|
|
|
|
)
|
2018-08-06 23:39:21 +00:00
|
|
|
|
|
|
|
build() {
|
2020-08-14 18:22:24 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-04-27 15:32:14 +00:00
|
|
|
make EXTRA="eeprog"
|
|
|
|
cd py-smbus
|
|
|
|
python -m build -wn
|
2018-08-06 23:39:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-08-14 18:22:24 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-04-27 15:32:14 +00:00
|
|
|
make EXTRA="eeprog" PREFIX="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
|
|
|
|
cd py-smbus
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2021-08-14 14:10:51 +00:00
|
|
|
install -Dm644 "${srcdir}/$pkgname.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgname.conf"
|
|
|
|
install -Dm644 "${srcdir}/45-i2c-tools.rules" "${pkgdir}/usr/lib/udev/rules.d/45-i2c-tools.rules"
|
2018-08-06 23:39:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|