summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3faad18cb3a351d82c9d7fedd932b9ab613778c0 (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
36
# Maintainer: Nick Black <dankamongmen@gmail.com>

pkgname="savvycan"
pkgproper="SavvyCAN"
pkgver="1.0.40"
pkgrel=1
epoch=1
pkgdesc="QT-based CAN bus analysis tool"
url="https://github.com/collin80/SavvyCAN"
license=('MIT')
arch=('x86_64')
depends=('qt5-serialbus')
makedepends=('qt5-base' 'qt5-tools')
source=("https://github.com/collin80/SavvyCAN/archive/${pkgver}.tar.gz")

build() {
  cd "$srcdir/$pkgproper-$pkgver"
  sed -i -e '/.*isEmpty(PREFIX)/,+3d' SavvyCAN.pro
  qmake-qt5 PREFIX=/usr \
    QMAKE_CFLAGS="${CFLAGS}" \
    QMAKE_CXXFLAGS="${CXXFLAGS}" \
    QMAKE_LFLAGS="${LDFLAGS}"
  make
}

check() {
  cd "$srcdir/$pkgproper-$pkgver"
  make check
}

package() {
  cd "$srcdir/$pkgproper-$pkgver"
	make INSTALL_ROOT="$pkgdir" install
}

sha256sums=('43da3925c83014200f2b64318f585b256aecfb446b776646adcebff89cd24022')