summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2016-05-11 18:13:01 -0700
committerKyle Manna2016-05-11 18:14:21 -0700
commitebd4facf4ddda21ad2cbed5a75eb0b3ac8a57da6 (patch)
tree52419a62d20e6f8a2d65248c5914b1ace610917f
downloadaur-ebd4facf4ddda21ad2cbed5a75eb0b3ac8a57da6.tar.gz
release: python-can v1.4.3
* Initial release
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD42
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..de23473f3ad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Thu May 12 01:13:43 UTC 2016
+pkgbase = python-can
+ pkgdesc = Python library to access CAN bus via SocketCAN, Kvaser's CANLIB, or CAN over Serial
+ pkgver = 1.4.3
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/python-can
+ arch = any
+ license = LGPLv3
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ depends = python
+ source = https://pypi.python.org/packages/29/d6/b29aa8513fa51e43688d74857047412408c5524c566553fec6e6d6eb23c0/python-can-1.4.3.tar.gz
+ sha512sums = f53770cb77f9f75919f754840e6a94fb67421218e6c55e299e84db9a257636b91bfabdc9a680b1ad729bc43283c75969084b238615bdf5e05ed954231973b171
+
+pkgname = python-can
+
+pkgname = python2-can
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a6832b4db47
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.tar.gz
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0d2c1bb6e83
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Kyle Manna <kyle[at]kylemanna[d0t]com>
+
+_pkgname=can
+pkgname=(python-${_pkgname} python2-${_pkgname})
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="Python library to access CAN bus via SocketCAN, Kvaser's CANLIB, or CAN over Serial"
+arch=('any')
+url="https://pypi.python.org/pypi/python-can"
+license=('LGPLv3')
+makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+source=(https://pypi.python.org/packages/29/d6/b29aa8513fa51e43688d74857047412408c5524c566553fec6e6d6eb23c0/python-can-${pkgver}.tar.gz)
+sha512sums=('f53770cb77f9f75919f754840e6a94fb67421218e6c55e299e84db9a257636b91bfabdc9a680b1ad729bc43283c75969084b238615bdf5e05ed954231973b171')
+
+prepare() {
+ cp -a "${srcdir}/python-${_pkgname}-${pkgver}"{,-py2}
+}
+
+build() {
+ cd "${srcdir}/python-${_pkgname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/python-${_pkgname}-${pkgver}-py2"
+ python2 setup.py build
+}
+
+package_python-can() {
+ cd "${srcdir}/python-${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+
+ # Clean-up cruft, how can we make setup.py not do this?
+ rm -rf ${pkgdir}/usr/lib/python*/site-packages/{examples,test}
+}
+
+package_python2-can() {
+ cd "${srcdir}/python-${_pkgname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ # Clean-up cruft, how can we make setup.py not do this?
+ rm -rf ${pkgdir}/usr/lib/python*/site-packages/{examples,test}
+}