[arch-commits] Commit in i2c-tools/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Jun 13 19:53:27 UTC 2020


    Date: Saturday, June 13, 2020 @ 19:53:27
  Author: jelle
Revision: 642973

archrelease: copy trunk to extra-x86_64

Added:
  i2c-tools/repos/extra-x86_64/
  i2c-tools/repos/extra-x86_64/PKGBUILD
    (from rev 642972, i2c-tools/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: i2c-tools/repos/extra-x86_64/PKGBUILD (from rev 642972, i2c-tools/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2020-06-13 19:53:27 UTC (rev 642973)
@@ -0,0 +1,36 @@
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: DonVla <donvla at users.sourceforge.net>
+
+pkgname=i2c-tools
+pkgver=4.1
+pkgrel=4
+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')
+makedepends=('python' 'git')
+optdepends=('read-edid: for decode-edid script'
+            'python: for smbus module')
+_commit=42b58a1f25d45859295110e9ae2f094776bddfed
+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:



More information about the arch-commits mailing list