Package Details: tradingview 2.9.2-1

Git Clone URL: https://aur.archlinux.org/tradingview.git (read-only, click to copy)
Package Base: tradingview
Description: A charting platform for traders and investors
Upstream URL: https://www.tradingview.com/desktop/
Keywords: binary charting electron finance stocks trading
Licenses: LicenseRef-TradingView
Submitter: inetol
Maintainer: inetol
Last Packager: inetol
Votes: 28
Popularity: 0.45
First Submitted: 2022-11-18 20:45 (UTC)
Last Updated: 2024-10-07 10:21 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 Next › Last »

mforthewin commented on 2024-07-05 12:35 (UTC)

@inetol, oh, great find -- looks great! Thanks for your effort! Also: I think it has to do with the fact that the .deb version has only been out for about a month.

inetol commented on 2024-07-05 10:44 (UTC)

@mforthewin They did have a proper dedicated repository for Debian based distros after all, they only keep the last 3 versions (too much to ask for) but it's better than having always the latest release.

I will update this package rn once I check that everything is working properly.

mforthewin commented on 2024-07-04 20:57 (UTC)

@inetol, it seems to be possible to download specific versions for Windows and macOS releases, however:

https://tvd-packages.tradingview.com/stable/2.8.0/win32/x64/TradingView.msix https://tvd-packages.tradingview.com/stable/2.8.0/darwin/TradingView.dmg

I have not found it to work for the .deb release, however. It might be possible in the future.

mforthewin commented on 2024-07-04 20:40 (UTC)

@inetol, yes, that is a good point -- I came to the same conclusion. Sadly, there does not seem to be an API for specific releases.

inetol commented on 2024-07-04 19:50 (UTC)

@mforthewin I can't use the deb release because I don't know if previous versions of TradingView are uploaded in the source, nor can I use a source whose package is constantly iterating.

mforthewin commented on 2024-07-04 12:48 (UTC)

This would be my suggestion for the .deb package (updated to 2.8.0):

PKGBUILD:

# Maintainer: Ivan Gabaldon <aur[at]inetol.net>
# Contributor: sukanka <su975853527 at gmail.com>

pkgname=tradingview
pkgver=2.8.0
pkgrel=1
pkgdesc='A charting platform for traders and investors'
arch=('x86_64')
url='https://www.tradingview.com/desktop/'
license=('LicenseRef-TradingView')
makedepends=('links')
source=("$pkgname-$pkgver.deb::https://tvd-packages.tradingview.com/ubuntu/stable/latest/jammy/tradingview_amd64.deb")
b2sums=('f967621b5dcb596909e9b298a1748d0a71a9e054d697bfe8cbb2760c748614b3a125d281e4d35f2f5df1dd52e6acfb91e32a67e2e58a8b7b13d9f9779ce52df2')

prepare() {
    bsdtar -xf "$srcdir/data.tar.xz" -C "$srcdir"

    # License
    links -width 80 -dump 'https://www.tradingview.com/policies/' | sed -n '/Terms of Use/,/TradingView may update these Rules at any time/p' > "LICENSE.txt"

    sed -i \
        -e "s|Exec=.*|Exec=/usr/bin/$pkgname %U|" \
        -e "s|Icon=.*|Icon=$pkgname|" \
        "$srcdir/usr/share/applications/$pkgname.desktop"
}

package() {
    depends=('alsa-lib'
             'at-spi2-core'
             'cairo'
             'dbus'
             'expat'
             'gcc-libs'
             'glib2'
             'glibc'
             'gtk3'
             'hicolor-icon-theme'
             'libcups'
             'libdrm'
             'libsecret'
             'libx11'
             'libxcb'
             'libxcomposite'
             'libxdamage'
             'libxext'
             'libxfixes'
             'libxkbcommon'
             'libxrandr'
             'mesa'
             'nspr'
             'nss'
             'pango')

    # Install application directory
    install -d "$pkgdir/opt"
    mv "$srcdir/opt/TradingView" "$pkgdir/opt/$pkgname"

    # Create symlink
    install -d "$pkgdir/usr/bin/"
    ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"

    # Install desktop entry
    install -Dm 644 -t "$pkgdir/usr/share/applications" \
        "$srcdir/usr/share/applications/$pkgname.desktop"

    # Install icon
    install -Dm 644 -t "$pkgdir/usr/share/icons/hicolor/512x512/apps" \
        "$srcdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"

    # Install license
    install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname" "LICENSE.txt"
}

.SRCINFO:

pkgbase = tradingview
    pkgdesc = A charting platform for traders and investors
    pkgver = 2.8.0
    pkgrel = 1
    url = https://www.tradingview.com/desktop/
    arch = x86_64
    license = LicenseRef-TradingView
    makedepends = links
    source = tradingview-2.8.0.deb::https://tvd-packages.tradingview.com/ubuntu/stable/latest/jammy/tradingview_amd64.deb
    b2sums = f967621b5dcb596909e9b298a1748d0a71a9e054d697bfe8cbb2760c748614b3a125d281e4d35f2f5df1dd52e6acfb91e32a67e2e58a8b7b13d9f9779ce52df2

pkgname = tradingview
    depends = alsa-lib
    depends = at-spi2-core
    depends = cairo
    depends = dbus
    depends = expat
    depends = gcc-libs
    depends = glib2
    depends = glibc
    depends = gtk3
    depends = hicolor-icon-theme
    depends = libcups
    depends = libdrm
    depends = libsecret
    depends = libx11
    depends = libxcb
    depends = libxcomposite
    depends = libxdamage
    depends = libxext
    depends = libxfixes
    depends = libxkbcommon
    depends = libxrandr
    depends = mesa
    depends = nspr
    depends = nss
    depends = pango

mforthewin commented on 2024-07-04 11:49 (UTC)

Is there any reason why the snap package is being used for packaging? The chrome-sandbox binary is only provided by the .deb package, and most of the /usr symlink stuff would also not be needed, as the .deb package has the right .desktop and .png files in place. I would suggest using the .deb package (which can just be extracted using bsdtar).

inetol commented on 2023-12-03 12:39 (UTC) (edited on 2023-12-03 12:47 (UTC) by inetol)

@m4jq It should be fixed in version 2.7.1-5, thanks for reporting the issue.