summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f631003b64143430c88ded80f61b04b489cdb083 (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
# Maintainer: Nick Ƙstergaard <oe.nick at gmail dot com>

pkgname=libsocketcan2-git
pkgver=r92.df01f01
pkgrel=1
pkgdesc="Library to control some basic functions in SocketCAN from userspace"
arch=('i686' 'x86_64')
url="http://git.pengutronix.de/?p=tools/libsocketcan.git"
license=('LGPLv2')
#depends=('')
#makedepends=('')
conflicts=('libsocketcan2')
provides=('libsocketcan2')
source=("${pkgname}"'::git+https://git.pengutronix.de/git/tools/libsocketcan')
md5sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname}"
  ./autogen.sh
  ./configure
  make
}

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