[arch-commits] Commit in i2c-tools/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:56:18 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:56:18
  Author: foutrelis
Revision: 753690

archrelease: copy trunk to community-staging-x86_64

Added:
  i2c-tools/repos/community-staging-x86_64/
  i2c-tools/repos/community-staging-x86_64/PKGBUILD
    (from rev 753689, i2c-tools/trunk/PKGBUILD)

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

Copied: i2c-tools/repos/community-staging-x86_64/PKGBUILD (from rev 753689, i2c-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 19:56:18 UTC (rev 753690)
@@ -0,0 +1,43 @@
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: DonVla <donvla at users.sourceforge.net>
+
+pkgname=i2c-tools
+pkgver=4.1
+pkgrel=6
+pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors"
+arch=('x86_64')
+url="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
+license=('GPL')
+depends=('perl')
+makedepends=('python' 'git')
+optdepends=('read-edid: for decode-edid script'
+            'python: for smbus module')
+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"
+)
+sha256sums=(
+  '57b219efd183795bd545dd5a60d9eabbe9dcb6f8fb92bc7ba2122b87f98527d5'
+  'SKIP'
+)
+validpgpkeys=(
+  '7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A' # Jean Delvare
+)
+
+build() {
+  cd ${pkgname}-${pkgver}
+  make
+  make -C eepromer CFLAGS="$CFLAGS -I../include"
+  cd py-smbus
+  CPPFLAGS="$CPPFLAGS -I../include" python setup.py build
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  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"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list