summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 405d83c0c201c1325e0b308ee20ac04887a68605 (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: Ethan Zonca <e@ethanzonca.com>

pkgname='cannelloni-git'
pkgdesc='SocketCAN over ethernet tunnel'
pkgver=v1.0.0
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
url='https://github.com/mguentner/cannelloni'
license=('gpl2')
makedepends=('cmake')
optdepends=('lksctp-tools: more reliable SCTP tunnels')
source=('git+https://github.com/mguentner/cannelloni.git')
sha512sums=('SKIP')



build() {
  cd "${srcdir}/cannelloni"

  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr
  make
}



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


pkgver() {
  cd "$srcdir/cannelloni"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}