summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2021-12-24 20:37:12 -0600
committerKyle Manna2021-12-24 20:37:12 -0600
commit5f21ad9312f136c5844ccb6662530b8baed6a412 (patch)
tree084c55a199357a2f6179fb11e60ddc1dc4014969
parent76d8766cb4223c62f43d916d3a7311a6d8a348ce (diff)
downloadaur-5f21ad9312f136c5844ccb6662530b8baed6a412.tar.gz
pkgrel: v3.3.4-3
* Clean-up build process.
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD18
3 files changed, 13 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cac90ea54bb..73900050376 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-can
pkgdesc = Python library to access CAN bus via SocketCAN, Kvaser's CANLIB, or CAN over Serial
pkgver = 3.3.4
- pkgrel = 2
+ pkgrel = 3
url = https://pypi.python.org/pypi/python-can
arch = any
license = LGPLv3
@@ -13,4 +13,3 @@ pkgbase = python-can
sha512sums = cc4084c0348e1e0ef2372ebd863f2dfc85cae7315beb15d68f6e7d9531f05318d4307624bca13b3ae711ce219d3434183cd14d758d6073bf03db69d347eb7e6c
pkgname = python-can
-
diff --git a/.gitignore b/.gitignore
index a6832b4db47..86ead82e659 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
-*.tar.gz
-*.pkg.tar.xz
+/*.tar.gz
+/*.pkg.tar.*
+/*.log
+/pkg
+/src
diff --git a/PKGBUILD b/PKGBUILD
index 945b286c893..38be4fe12b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maintainer: Kyle Manna <kyle[at]kylemanna[d0t]com>
-_pkgname=can
-pkgname=python-${_pkgname}
+pkgname=python-can
pkgver=3.3.4
-pkgrel=2
+pkgrel=3
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"
@@ -13,15 +12,12 @@ depends=('python' 'python-aenum' 'python-wrapt')
source=(https://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('cc4084c0348e1e0ef2372ebd863f2dfc85cae7315beb15d68f6e7d9531f05318d4307624bca13b3ae711ce219d3434183cd14d758d6073bf03db69d347eb7e6c')
-build-python-can() {
- cd "${srcdir}/python-${_pkgname}-${pkgver}"
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
python 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() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
}