blob: 4b4f78e8bd63bb621b4c0c008479adfc46f5c3e4 (
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
|
# Maintainer: M.Reynolds <blackboxnetworkproject@gmail.com>
pkgname=tastyworks
pkgver=1.0.16
pkgrel=1
pkgdesc="One of the fastest, most reliable, and most secure trading platforms in the world."
arch=('x86_64')
url="https://tastyworks.com/technology.html"
license=('Other')
depends=('java-runtime')
source=("https://download.tastyworks.com/desktop-1.x.x/$pkgver/$pkgname-$pkgver-$pkgrel.x86_64.rpm"
"tastyworks.png")
sha256sums=('8a2c9bd54dd1736aa07e693839939988d94951537709cf1bd3e9263ce3368fd5'
'5875675195bb9156c050976e00c98538a6662740f5359e677d26fe5e21560cea')
package() {
cd "$srcdir"
find "$srcdir" -name "*.jar" -type f -exec chmod 755 {} \;
find "$srcdir" -name "*.so" -type f -exec chmod 755 {} \;
mkdir -p usr/bin
pushd "usr/bin" && ln -sf /opt/$pkgname/bin/$pkgname && popd
install -d "$pkgdir/opt/$pkgname"
cp -r "$srcdir/opt/$pkgname/" "$pkgdir/opt/"
cp -r "$srcdir/usr/" "$pkgdir/"
sed -i 's|Name=tastyworks|Name=TastyWorks|' "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
sed -i 's|Comment=tastyworks|Comment=Trading Platform|' "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
sed -i 's|Icon=/opt/tastyworks/tastyworks.png|Icon=tastyworks|' "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
sed -i 's|Categories=Unknown|Categories=Internet|' "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
# 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' >> "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
sed -i '/^[[:space:]]*$/d' "$srcdir/opt/$pkgname/bin/$pkgname.desktop"
install -Dm 644 "$srcdir/opt/$pkgname/bin/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
# Alternative Application Icon
install -Dm 644 "$srcdir/opt/$pkgname/bin/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
# install -Dm 644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}
|