summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel-Andrew Pollo Guilbert2018-02-09 17:05:36 -0500
committerGabriel-Andrew Pollo Guilbert2018-02-09 17:05:36 -0500
commit0a17c88211c031b1da743a7225b73259668d501c (patch)
tree7a0dd34b206af6831b767ebe1dd11f05e3f042c0
downloadaur-canmatrix-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eaebf4af87b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = canmatrix-git
+ pkgdesc = Utility for converting CAN database formats
+ pkgver = 0.4.r327.g53e47b2
+ pkgrel = 1
+ url = https://github.com/ebroecker/canmatrix
+ arch = any
+ license = BSD
+ depends = python
+ depends = python-lxml
+ depends = python-xlwt
+ depends = python-xlrd
+ depends = python-xlsxwriter
+ depends = python-yaml
+ depends = python-future
+ source = git+https://github.com/ebroecker/canmatrix.git
+ sha256sums = SKIP
+
+pkgname = canmatrix-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b6e3aefef7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
+
+pkgname=canmatrix-git
+pkgver=0.4.r327.g53e47b2
+pkgrel=1
+pkgdesc='Utility for converting CAN database formats'
+arch=('any')
+url='https://github.com/ebroecker/canmatrix'
+license=('BSD')
+depends=(
+ 'python' 'python-lxml' 'python-xlwt' 'python-xlrd' 'python-xlsxwriter'
+ 'python-yaml' 'python-future'
+)
+
+source=("git+https://github.com/ebroecker/canmatrix.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/canmatrix
+ git describe --long 2>/dev/null | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+package() {
+ cd $srcdir/canmatrix
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+