summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c6e90d50b951781f68e9a7b4b483c42627cb2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pkgname='python2-smbus2'
_pkgname=${pkgname#python2-}
pkgver=0.1.4
pkgrel=1
pkgdesc="A drop-in replacement for smbus-cffi/smbus-python in pure Python"
arch=('any')
url="https://github.com/kplindegaard/smbus2"
license=('GPL2')
depends=('python2')

source=("https://github.com/kplindegaard/smbus2/archive/$pkgver.tar.gz")
sha1sums=('bfbf5c7cbe9ff1bd5efdc0c6237afacb6671df4c')

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir" --optimize=1
}