blob: b4dbd1925f9dbcd14cee3dd2558194b3fdfda714 (
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
|
# Maintainer: CupIvan <mail@cupivan.ru>
pkgname=quik
pkgver=11.4.0
pkgrel=1
stratver=3.0.5
trustver=2.10.0
btradever=1.2.1002
pkgdesc="Trading terminal in Wine"
url="https://arqatech.com/ru/products/quik/terminals/user-applications/quik-workstation/"
arch=('x86_64')
noextract=('keygen.zip')
source=(
"https://arqatech.com/upload/iblock/442/quik_${pkgver}_upd.zip"
"ftp://ftp.quik.ru/public/updates/10.2/StratVolat_${stratver}_upd.zip"
#"ftp://ftp.quik.ru/public/updates/11.2/TrustManager_${trustver}_upd.zip"
#"ftp://ftp.quik.ru/public/updates/10.2/BTrading_${btradever}_upd.zip"
"keygen.zip::ftp://ftp.quik.ru/public/updates/keygen_1.3.0_upd.zip"
"https://github.com/alain-riedinger/luasocket/releases/download/3.0-5.3.5/luasocket-3.0-5.3.5.zip"
"https://github.com/alain-riedinger/luasocket/releases/download/3.0-5.4.3/luasocket-3.0-5.4.3.zip"
"quik"
"quik-keygen"
"qrypto.cfg"
"ip.cfg"
)
sha256sums=(
'3546efdf2a7a14e1fb6dfa56c54cae70b73518c8b1e7933d11fcfbac236149a7' # quik_11.4.0_upd.zip
'd32095309cd7359f4078a74179d8ae42e013e3fd3ad75837f0fa3941e7091b75' # StratVolat 3.0.5
#'ff4dd52e56fabe8c06730daca770a92312338303bc06b58d417105d44c5a0869' # TrustManager
#'0f6724e6666c379cf9a1f53aa627f4b0c56fded2d7e3fbf3704d6526066fa8e3' # BasketTrading
'bc66665d2209836abe51ae9258c289c0f682dba4ea5261f9319996a60a6a4ae7' # keygen
'b2a3a2e2a895cea35aad5dee97640ef7bcccbb38e61e61b14baff6cecbdd79af' # lua-socket 5.3.5
'2e69ea49e9b6a9d7c84bcf37653f4a1e15e8b73d7b21302e7cd40d29af6104aa' # lua-socket 5.4.3
'e4ddfc7a2a12bba0fdc880dcb05757fff2c035b2625f721ea1a0383bdc6ad1bf'
'92563c563a9781592d1e119117e3b7a899addfabd733648986b97db999386821'
'd981ee4cc35d33a3b37c43fb7343bde5c24e15e003dbb67907b602d22f60a469'
'49aa53c38ceb5c3029398203a68bbb1b3cc9819d01ecb57a6ce13c31b344fe03' # ip.cfg
)
prepare() {
mkdir -p {keygen,socket-5.3,socket-5.4}
bsdtar -xzf keygen.zip -C keygen
bsdtar -xzf luasocket-3.0-5.3.5.zip -C socket-5.3
bsdtar -xzf luasocket-3.0-5.4.3.zip -C socket-5.4
# bugfix in luasock 5.4 @url https://gist.github.com/ttys3/31dbf88ee7d708294d8ae5b0a4954424
# cd ./socket-5.4/x64/socket/
# cat http.lua | sed 's/receive()/receive("*l")/' > tmp; mv tmp http.lua
# cat tp.lua | sed 's/receive()/receive("*l")/' > tmp; mv tmp tp.lua
}
package() {
bindir="${pkgdir}/usr/lib/quik/bin"
# quik
install -Dm755 quik "${pkgdir}/usr/bin/quik"
for fname in ./*.exe; do install -Dm755 $fname "$bindir/$fname"; done
for fname in ./*.dll; do install -Dm644 $fname "$bindir/$fname"; done
for fname in ./*.chm; do install -Dm644 $fname "$bindir/$fname"; done
for fname in ./*.cfg; do install -Dm644 $fname "$bindir/$fname"; done
# keygen
install -Dm755 quik-keygen "${pkgdir}/usr/bin/"
for fname in ./keygen/*.exe; do install -Dm755 $fname "$bindir/$fname"; done
for fname in ./keygen/*.dll; do install -Dm644 $fname "$bindir/$fname"; done
for fname in ./keygen/*.chm; do install -Dm644 $fname "$bindir/$fname"; done
# libs
cd "${srcdir}/socket-5.3/x64/"
for fname in {mime/core.dll,socket/core.dll}; do install -Dm644 $fname "$bindir/../lib/lua/5.3/$fname"; done
for fname in {*.lua,socket/*.lua}; do install -Dm644 $fname "$bindir/../share/lua/5.3/$fname"; done
cd "${srcdir}/socket-5.4/x64/"
for fname in {mime/core.dll,socket/core.dll}; do install -Dm644 $fname "$bindir/../lib/lua/5.4/$fname"; done
for fname in {*.lua,socket/*.lua}; do install -Dm644 $fname "$bindir/../share/lua/5.4/$fname"; done
}
|