summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb92b9cd999cc2a173e482c2402563f71f2dfa94 (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
# Maintainer: Konstantin Gizdov arch at kge dot pw

_pkgname=libsocketcan
pkgname="${_pkgname}-git"
pkgver=r101.b464485
pkgrel=1
source=("${_pkgname}::git+https://github.com/lalten/libsocketcan#branch=gh-pages")
sha256sums=('SKIP')
arch=('x86_64')
makedepends=('git')
pkgdesc='allows control of some basic functions in SocketCAN from userspace'
license=('LGPL2.1')
url='http://lalten.github.io/libsocketcan/'
pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build () {
  cd "${srcdir}/${_pkgname}"
  ./autogen.sh
  ./configure --prefix=/usr
  # fix missing build rule
  cp README.md README
  make
}

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