summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e09ec48980223d21db6eb4519efd7bc38ce3a0c (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
28
29
30
31
32
33
34
35
# Maintainer: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>

pkgname=cantools-git
pkgver=r59.d6f0a5a
pkgrel=1
pkgdesc='Cantools is a set of libraries and command line tools for handling.'
arch=('i686' 'x86_64')
license=('GPL')
depends=('libmatio' 'check')
makedepends=('git' 'bison' 'flex' 'autoconf')
url='https://github.com/aheit/cantools'
source=('cantools-git::git+https://github.com/aheit/cantools')
md5sums=('SKIP')
options=()

pkgver() {
    cd $srcdir/$pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $srcdir/$pkgname
    autoreconf -vif
    ./configure CFLAGS="-fPIC"
}

build() {
    cd $srcdir/$pkgname/
    make
}

package() {
    cd $srcdir/$pkgname/
    make install DESTDIR=$pkgdir
}