blob: d9a7d1fd7010dd20100d44f5d47bb0a47220e053 (
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
|
# 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>
pkgname=python-smbus-git
_pkgname=python-smbus
pkgver=r317.1831b61
pkgrel=1
pkgdesc="Python wrapper for SMBus access over i2c-dev."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
license=('GPL')
depends=('python' 'i2c-tools-git')
makedepends=('python' 'git')
provides=('python-smbus')
conflicts=('python-smbus')
options=('!strip')
source=('python-smbus::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}/py-smbus"
python setup.py clean --all
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}/py-smbus"
python setup.py install --prefix "${pkgdir}/usr"
}
# vim:set ts=2 sw=2 et:
|