summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd7c3632472712e6a32ee457e2424c0c2c9c341e (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
pkgname=cangaroo
pkgver=0.2.0
pkgrel=1
pkgdesc="An Open-Source CAN Monitor"
arch=('any')
license=('GPL')
depends=(
  'git'
  'qt5-base'
)
url="https://github.com/HubertD/cangaroo"

source=("$pkgname::git+https://github.com/HubertD/cangaroo.git#tag=$pkgver")
md5sums=('SKIP')

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

build(){
	cd "$srcdir/$pkgname"
	# master is the normal one. msgfilter is the current
	git checkout $pkgver
	qmake
	make
}


package() {
	cd "$srcdir/$_pkgname"
	install -Dm755 "$srcdir/$pkgname/bin/cangaroo" "$pkgdir/usr/bin/cangaroo"
	install -Dm644 "$srcdir/$pkgname/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -Dm644 "$srcdir/$pkgname/src/assets/cangaroo.png" "$pkgdir/usr/share/pixmaps/cangaroo.png"
}