blob: c7dc96cccd0b5ae9a6f0acecabe5ead2de6e6669 (
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
|
# Maintainer: Ahmed W. <oneofone@gmail.com>
# old maintainer: M.Reynolds <blackboxnetworkproject@gmail.com>
pkgname=tastytrade
pkgver='2.20.0'
pkgrel='1'
pkgdesc="One of the fastest, most reliable, and most secure trading platforms in the world."
arch=('x86_64')
url='https://tastytrade.com/'
license=('custom:commercial')
conflicts=('tastytrade-bin')
source=(https://download.tastytrade.com/desktop-2.x.x/${pkgver}/tastytrade-${pkgver}-1_amd64.deb)
sha256sums=('a495c993d1299c341b9adf4b2e9839d24b906adfc9123abad467c52d33c61c5e')
build() {
tar axf data.tar.zst
# Remove additional bundled Java "runtime"
#rm -rf opt/tastytrade/lib/runtime
#sed -i 's|app.runtime=$ROOTDIR/lib/runtime|app.runtime=/usr/lib/jvm/default-runtime|' opt/tastytrade/lib/app/tastytrade.cfg
DF="opt/tastytrade/lib/tastytrade-tastytrade.desktop"
# Set correct information for the application .desktop launcher
sed -i 's|Name=tastytrade|Name=TastyTrade|' $DF
sed -i 's|Comment=tastytrade|Comment=Trading Platform|' $DF
sed -i 's|Exec=.*|Exec=/usr/bin/tastytrade|' $DF
sed -i 's|Icon=.*|Icon=tastytrade|' $DF
sed -i 's|Categories=tastytrade|Categories=Network|' $DF
# Add the correct startup window manager class
# This *should* fix gnome from creating more than one dock entry for the program
echo 'StartupWMClass=tasty.javafx.launcher.LauncherFxApp' >>$DF
sed -i '/^[[:space:]]*$/d' $DF
}
package() {
install -d "${pkgdir}/usr/bin"
ln -sf "/usr/lib/${pkgname}/bin/tastytrade" "${pkgdir}/usr/bin/${pkgname}"
install -d "${pkgdir}/usr/lib/${pkgname}/lib/app"
cp -r "${srcdir}/opt/tastytrade/lib/app/" "${pkgdir}/usr/lib/${pkgname}/lib/"
cp -r "${srcdir}/opt/tastytrade/lib/runtime/" "${pkgdir}/usr/lib/${pkgname}/lib/"
install -Dm 644 "${srcdir}/opt/tastytrade/lib/libapplauncher.so" "${pkgdir}/usr/lib/${pkgname}/lib/libapplauncher.so"
install -Dm 755 "${srcdir}/opt/tastytrade/bin/tastytrade" "${pkgdir}/usr/lib/${pkgname}/bin/tastytrade"
install -Dm 644 "${srcdir}/opt/tastytrade/lib/tastytrade-tastytrade.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm 644 "${srcdir}/opt/tastytrade/share/doc/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 "${srcdir}/opt/tastytrade/lib/tastytrade.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
echo "changelog: https://tastytrade.freshdesk.com/support/solutions/articles/43000435186-recent-release-notes?_sp=7c25726d-6774-4b70-bda4-a82570383c13.1600117130600"
}
|