PKGBUILDs/community/i2c-tools/PKGBUILD

46 lines
1.3 KiB
Bash
Raw Normal View History

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
2021-01-19 18:59:30 +00:00
pkgver=4.2
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')
2019-08-17 17:55:16 +00:00
makedepends=('python' 'git')
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-01-19 18:59:30 +00:00
sha256sums=('37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6'
'SKIP')
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}
2018-08-06 23:39:21 +00:00
make
make -C eepromer CFLAGS="$CFLAGS -I../include"
cd py-smbus
CPPFLAGS="$CPPFLAGS -I../include" python setup.py build
}
package() {
2020-08-14 18:22:24 +00:00
cd ${pkgname}-${pkgver}
2020-06-14 03:54:27 +00:00
make PREFIX="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
2018-08-06 23:39:21 +00:00
install -Dm755 eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/bin"
cd py-smbus
python setup.py install --prefix "${pkgdir}/usr"
}
# vim:set ts=2 sw=2 et: