summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2978f7229587ee26308ee5311bc463a626ef42b (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Maintainer: taotieren <admin@taotieren.com>

pkgname=serial-studio
_pkgname=Serial-Studio
pkgver=3.0.6
pkgrel=3
pkgdesc="Multi-purpose serial data visualization & processing program"
arch=($CARCH)
url="https://github.com/Serial-Studio/Serial-Studio"
license=('MIT')
groups=()
_qt=qt6
depends=(
    avahi
    brotli
    bzip2
    curl
    e2fsprogs
    expat
    dbus
    duktape
    gcc-libs
    glib2
    glibc
    gmp
    graphite
    gnutls
    harfbuzz
    freetype2
    icu
    llvm-libs
    libcap
    libcups
    libdrm
    libedit
    libelf
    libevdev
    libffi
    libglvnd
    libgudev
    libjpeg-turbo
    libice
    libp11-kit
    libpciaccess
    libpng
    libpsl
    libidn2
    libnghttp2
    libnghttp3
    libssh2
    libtasn1
    libunistring
    libwacom
    libx11
    libxau
    libxcb
    libxdmcp
    libxml2
    libxkbcommon
    libxshmfence
    lm_sensors
    keyutils
    krb5
    systemd-libs
    mesa
    mtdev
    ncurses
    nettle
    $_qt-base
    $_qt-declarative
    $_qt-connectivity
    $_qt-location
    $_qt-graphs
    $_qt-quick3d
    $_qt-positioning
    $_qt-serialport
    $_qt-svg
    openssl
    pcre2
    util-linux-libs
    wayland
    xcb-util
    xcb-util-image
    xcb-util-renderutil
    xz
    zlib
    zstd
)
makedepends=(
    cmake
    ninja
    $_qt-5compat
    $_qt-charts
    #     $_qt-quickcontrols2
    $_qt-quickeffectmaker
    $_qt-tools
)
provides=(${_pkgname} ${pkgname})
conflicts=(${_pkgname} ${pkgname})
replaces=()
backup=()
options=()
install=
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('3141605fae37869f4375349bbfa0242ae66b3914ead31ea11866ab3fac2f20e4')
noextract=()

build() {
    cd "$srcdir/${_pkgname}-${pkgver}"

    cmake -DCMAKE_BUILD_TYPE=Release \
        -DPRODUCTION_OPTIMIZATION=ON \
        -DCMAKE_INSTALL_PREFIX=/usr/share/serial-studio \
        -DCMAKE_INSTALL_BINDIR=/usr/bin \
        -B build \
        -G Ninja

    ninja -C build
}

package() {
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${_pkgname}-${pkgver}/build install
}