blob: 82e9bf8aa513ba73f76e879c09f84c3ea543dfb5 (
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
|
# Maintainer: Dylan <dylan@psilly.com>
pkgname=questrade-iq-edge
pkgver=6.5.10.273
pkgrel=1
pkgdesc="A proprietary desktop stock trading platform."
arch=(any)
url="https://www.questrade.com/self-directed-investing/trading-platforms/iq-edge"
license=(unknown)
depends=(wine)
makedepends=(icoutils)
optdepends=('ttf-ms-win10: readable window titles')
source=($pkgname-$pkgver.zip::https://media.questrade.com/iq_downloads/QuestradeIQEdge.zip
com.questrade.IQEdge.desktop)
sha256sums=('d69723c1b24ccc1d504d25befecb5e40d934b767c5abd9c4d5c0eaef1d6120fa'
'a72c10367e165bd03591ae6998a6b85bd72b799088655968d9bcee4ebfeb3d1e')
build() {
# Extract icon from binary
wrestool -x --output=icon.ico -t14 QuestradeIQEdge.exe
# Convert ico to png(s)
icotool -x icon.ico
}
package() {
# Use the biggest icon
install -Dm777 icon_9_512x512x32.png $pkgdir/usr/share/pixmaps/$pkgname.png
# Delete temp icons
rm icon*.png icon.ico
# Add desktop entry
install -Dm777 com.questrade.IQEdge.desktop $pkgdir/usr/share/applications/com.questrade.IQEdge.desktop
# Install contents of zip under /opt/
installdir=/opt/$pkgname
install -dm777 $pkgdir$installdir
mv * $pkgdir$installdir/
}
|