blob: 75b1d5d64a4e118982b3326ed3ce389aca1a97bd (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=cangaroo-hpmicro-canfd-analyzer-git
pkgver=r5.bb9963e
pkgrel=1
pkgdesc="Four-channel CANFD analyzer based on hpmicro hpm5361"
arch=($CARCH)
license=('GPL-2.0-only')
provides=(${pkgname} cangaroo)
conflicts=(${pkgname} cangaroo)
depends=(
bash
gcc-libs
glibc
libnl
qt5-charts
qt5-base
qt5-serialport
)
makedepends=(git
qt5-tools)
url="https://github.com/RCSN/cangaroo_hpmicro_canfd_analyzer"
source=("$pkgname::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
(
set -o pipefail
git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
prepare() {
git -C "${srcdir}/${pkgname}" clean -dfx
cd "${srcdir}/${pkgname}"
git config --global user.email "admin@taotieren.com"
git config --global user.name "taotieren"
git remote add taotieren https://github.com/taotieren/cangaroo_hpmicro_canfd_analyzer.git
git fetch --all
git merge taotieren/fix-build
}
build() {
cd "$srcdir/$pkgname"
qmake-qt5 CONFIG+=release
make
cd canifconfig
qmake-qt5 CONFIG+=release
make
}
package() {
cd "$srcdir/$pkgname"
make install INSTALL_ROOT=${pkgdir}/usr
cd canifconfig
make install INSTALL_ROOT=${pkgdir}/usr
}
|