blob: 589c8d4cb9c846423f2e726d462cc98dfdeb2821 (
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
|
# Maintainer: Jonathan Hudson <jh+mwptools@daria.co.uk>
pkgname=blackbox-tools-inav-git
pkgver=r240.edbf99a
pkgrel=1
pkgdesc='tools for examining INAV blackbox logs - master'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'riscv64')
url='https://github.com/iNavflight/blackbox-tools.git'
license=('GPL-3.0-only')
makedepends=('git')
depends=('cairo')
provides=("blackbox-tools-inav")
conflicts=("blackbox-tools-git" )
source=("blackbox-tools::git+$url")
sha512sums=('SKIP')
_basedir="blackbox-tools"
pkgver() {
cd $_basedir
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_basedir
make
}
package() {
# executable
cd $_basedir
install -Dm755 obj/blackbox_decode "$pkgdir/usr/bin/blackbox_decode"
install -Dm755 obj/blackbox_render "$pkgdir/usr/bin/blackbox_render"
install -Dm755 obj/encoder_testbed "$pkgdir/usr/bin/encoder_testbed"
install -Dm644 tools/blackbox_decode_complete.sh $pkgdir/usr/share/bash-completion/completions/blackbox_decode
}
|