summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD17
2 files changed, 32 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b2905b9da44
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Wed Apr 12 07:30:32 UTC 2017
+pkgbase = python2-smbus2
+ pkgdesc = A drop-in replacement for smbus-cffi/smbus-python in pure Python
+ pkgver = 0.1.4
+ pkgrel = 1
+ url = https://github.com/kplindegaard/smbus2
+ arch = any
+ license = GPL2
+ depends = python2
+ source = https://github.com/kplindegaard/smbus2/archive/0.1.4.tar.gz
+ sha1sums = bfbf5c7cbe9ff1bd5efdc0c6237afacb6671df4c
+
+pkgname = python2-smbus2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c6e90d50b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}