mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/i2c-tools to 4.1-5
This commit is contained in:
parent
e1272c4000
commit
ea7f0c6c8c
1 changed files with 16 additions and 9 deletions
|
@ -6,22 +6,30 @@
|
||||||
|
|
||||||
pkgname=i2c-tools
|
pkgname=i2c-tools
|
||||||
pkgver=4.1
|
pkgver=4.1
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors"
|
pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.lm-sensors.org/wiki/I2CTools"
|
url="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('perl')
|
depends=('perl')
|
||||||
makedepends=('python' 'git')
|
makedepends=('python' 'git')
|
||||||
|
options=('!makeflags')
|
||||||
optdepends=('read-edid: for decode-edid script'
|
optdepends=('read-edid: for decode-edid script'
|
||||||
'python: for smbus module')
|
'python: for smbus module')
|
||||||
options=('!makeflags')
|
source=(
|
||||||
_commit=42b58a1f25d45859295110e9ae2f094776bddfed
|
"https://www.kernel.org/pub/software/utils/i2c-tools/$pkgname-$pkgver.tar.xz"
|
||||||
source=("git+https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git#commit=$_commit")
|
"https://www.kernel.org/pub/software/utils/i2c-tools/$pkgname-$pkgver.tar.sign"
|
||||||
sha256sums=('SKIP')
|
)
|
||||||
|
sha256sums=(
|
||||||
|
'57b219efd183795bd545dd5a60d9eabbe9dcb6f8fb92bc7ba2122b87f98527d5'
|
||||||
|
'SKIP'
|
||||||
|
)
|
||||||
|
validpgpkeys=(
|
||||||
|
'7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A' # Jean Delvare
|
||||||
|
)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd ${pkgname}-${pkgver}
|
||||||
make
|
make
|
||||||
make -C eepromer CFLAGS="$CFLAGS -I../include"
|
make -C eepromer CFLAGS="$CFLAGS -I../include"
|
||||||
cd py-smbus
|
cd py-smbus
|
||||||
|
@ -29,12 +37,11 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd ${pkgname}-${pkgver}
|
||||||
make PREFIX="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
|
make PREFIX="${pkgdir}/usr" sbindir="$pkgdir/usr/bin" install
|
||||||
install -Dm755 eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/bin"
|
install -Dm755 eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/bin"
|
||||||
cd py-smbus
|
cd py-smbus
|
||||||
python setup.py install --prefix "${pkgdir}/usr"
|
python setup.py install --prefix "${pkgdir}/usr"
|
||||||
rm -rf "${pkgdir}/usr/include"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue