summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b6e3aefef7bee49c152cd83c27c23655e5baf8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}