summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dfe810c5a3d7fb8da3f5e05b5b56d272f4c87e0 (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
61
62
63
64
65
66
# Maintainer: taotieren <admin@taotieren.com>

pkgname=serial-studio
_pkgname=Serial-Studio
pkgver=2.0.0
pkgrel=0
pkgdesc="Multi-purpose serial data visualization & processing program"
arch=('x86_64'
    'aarch64'
    'riscv64')
url="https://github.com/Serial-Studio/Serial-Studio"
license=('MIT')
groups=()
_qt=qt6
depends=(gcc-libs
    glibc
    $_qt-5compat
    $_qt-base
    $_qt-connectivity
    $_qt-declarative
    $_qt-serialport)
makedepends=(git
    $_qt-charts
    $_qt-quickcontrols2
    $_qt-svg
    $_qt-tools)
provides=(${_pkgname} ${pkgname} ${pkgname}-git)
conflicts=(${_pkgname} ${pkgname} ${pkgname}-git)
replaces=()
backup=()
options=()
install=
source=("${pkgname}::git+${url}.git"
    "git+https://github.com/alex-spataru/QSimpleUpdater.git"
    "git+https://github.com/iamantony/qtcsv.git"
    "git+https://github.com/jothepro/doxygen-awesome-css.git"
    "git+https://github.com/alex-spataru/qmqtt.git")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')
noextract=()

prepare() {
    git -C "${srcdir}/${pkgname}" clean -dfx
    cd "$srcdir/${pkgname}"
    git checkout -b v$pkgver v$pkgver
    git submodule init
    git config submodule.libs/QSimpleUpdater.url "$srcdir/QSimpleUpdater"
    git config submodule.libs/qtcsv.url "$srcdir/qtcsv"
    git config submodule.doc/doxygen/doxygen-awesome-css.url "$srcdir/doxygen-awesome-css"
    git config submodule.libs/qmqtt.url "$srcdir/qmqtt"
    git -c protocol.file.allow=always submodule update
}

build() {
    cd "$srcdir/${pkgname}"
    qmake6 ./${_pkgname}.pro CONFIG+=[release]
    make -j$(nproc)
}

package() {
    cd "$srcdir/${pkgname}"
    make INSTALL_ROOT="$pkgdir/" install
}