summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58d83c51cae7da74d5de396b2a76f729e609fb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Dylan Whichard <dylan at whichard dot com>
# Contributor: Michael Goehler <somebody dot here at gmx dot de>
# Contributor: Timothy Redaelli <timothy dot redaelli at gmail dot com>
# Contributor: DonVla <donvla at users dot sourceforge dot net>
# Contributor: Cengiz Can <cengizc at gmail dot com>

pkgname=i2c-tools-git
_pkgname=i2c-tools
pkgver=r332.4b28579
pkgrel=1
pkgdesc="Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
license=('GPL')
provides=('i2c-tools' 'i2c-tools-svn')
conflicts=('i2c-tools' 'i2c-tools-svn')
makedepends=('git')
optdepends=('read-edid: for decode-edid script'
            'python2-smbus: python2 bindings'
            'python-smbus: python3 bindings')
source=('i2c-tools-git::git+https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
    
build() {
  cd "${srcdir}/${pkgname}"
  make clean
  make -j1 EXTRA=eeprog
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" PREFIX="/usr" sbindir="/usr/bin" install
  install -Dm755 eeprog/eeprog "${pkgdir}/usr/bin"
  install -Dm755 eeprog/eeprog.8 "${pkgdir}/usr/share/man/man8"
}

# vim:set ts=2 sw=2 et: