summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6c0cc079c0b487d2f67218a813ffca696e33aee (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
# Generated by debtap
# Maintainer: taotieren <admin@taotieren.com>

pkgname=fire-tool
pkgver=1.0.1.5
pkgrel=6
pkgdesc="Embedfire Tool support Serial communication, TCP/UDP communication, camera and PID debuggingVisit https://www.embedfire.com for more information."
arch=('x86_64')
url="https://www.embedfire.com"
license=('unknown')
depends=(
    gcc-libs
    glib2
    glibc
    freetype2
    fontconfig
    libglvnd
    libx11
    libxext
    libxcb
    libxkbcommon
    libxkbcommon-x11
    qt5-base
    qt5-networkauth
    qt5-serialport
    qt5-svg
    qt5-xcb-private-headers
    zlib
)
makedepends=()
# groups=()
options=('!strip' '!emptydirs')
source_x86_64=("https://cloud.embedfire.com/software/FireTools/fireTools.deb")
sha512sums_x86_64=('b6ea80999c5f440aa7b080b4fb535d446a1150f7fd538658921a2112e1d3e4a5ccb363dc4e20ca58ceb6784db337add10312f217b177ada93a383948e6b232a6')

package() {

    # Extract package data
    tar xf data.tar.xz -C "${pkgdir}"
    install -dm755 "${pkgdir}/usr/share/applications/" \
        "${pkgdir}/usr/bin/"
    install -Dm644 "${pkgdir}/opt/fireTools/icon/icon.png" "${pkgdir}/usr/share/pixmaps/firetools.png"
    ln -sf "/opt/fireTools/bin/fireTools" "${pkgdir}/usr/bin/firetools"
    cat >"${pkgdir}/usr/share/applications/firetools.desktop" <<EOF
[Desktop Entry]
Type=Application
Exec=/usr/bin/firetools
Name=Multi-function debugging assistant
Name[zh_CN]=多功能调试助手
Icon=firetools.png
Terminal=false
Path=/opt/fireTools/bin
StartupNotify=true
EOF
    rm -rf "${pkgdir}/opt/fireTools/lib"
    rm -rf "${pkgdir}/opt/fireTools/icon"
    rm -rf "${pkgdir}/opt/fireTools/fireTools.desktop"
    rm -rf "${pkgdir}/opt/fireTools/run.sh"

}