summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a0a5498061ef5fadb33f67dca578cf6c13a1f04 (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: Gonçalo Camelo Neves Pereira <goncalo_pereira@outlook.pt>

pkgname=can-utils
pkgver=2018.02.0
_pkgname=can-utils-${pkgver}
pkgrel=1
pkgdesc="Linux-CAN / SocketCAN user space applications"
arch=('any')
url="https://github.com/linux-can/can-utils"
license=('GPLv2')
makedepends=("libtool")
provides=("can-utils")
replaces=("can-utils-git")
conflicts=("can-utils-git")
source=("https://github.com/linux-can/can-utils/archive/v2018.02.0.tar.gz")
sha256sums=('SKIP')

build() {
    cd "${srcdir}"
    tar -xzf v2018.02.0.tar.gz
    pwd
    cd "${_pkgname}"
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

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