summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBen Alex2015-11-30 12:38:21 +1100
committerBen Alex2015-11-30 12:51:25 +1100
commit032cd11918d54c8fe0c95c5efd10d5bf7b8f3e90 (patch)
tree10af0e0e5eb22df4e8711e9ba746faefa46afbfa /PKGBUILD
parent15aaeeb40e40fb8c095046810481cc04143d2ec4 (diff)
downloadaur-032cd11918d54c8fe0c95c5efd10d5bf7b8f3e90.tar.gz
Support 954.2a, including major changes to IB's release format.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD67
1 files changed, 37 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a5277924c59..7bc302525ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,56 +1,63 @@
# Maintainer: Ben Alex <ben.alex@acegi.com.au>
pkgname=ib-tws
-pkgver=952.1e
+pkgver=954.2a
pkgrel=1
pkgdesc='Electronic trading platform from discount brokerage firm Interactive Brokers'
arch=('any')
url="http://interactivebrokers.com/"
license=('custom')
depends=(java-environment bash)
-makedepends=(imagemagick)
+makedepends=(imagemagick gzip tar)
source=('LICENSE'
'ib-tws'
'ib-tws.desktop'
'ib-gw'
'ib-gw.desktop'
- 'http://download2.interactivebrokers.com/download/unixmacosx_latest.jar')
-
+ 'https://download2.interactivebrokers.com/installers/tws/latest-standalone/tws-latest-standalone-linux-x64.sh')
md5sums=('e1cae2de592add7133bb08123e8db1ad'
'c407d22dfafdb33ec2fe97eeb5e9f0aa'
'9205b5eade96d69f8e470cc52c30db4a'
'c95eeb41fec3aae6ad5e82703a39060c'
'ffa9fcfb623850e5c9e796040bdbd052'
- 'a5e03a6fc63e7ef2eca82091ada08f46')
+ 'ec5f1c447b83f3530c1b727fab98e7fc')
+
build() {
- # Thanks to http://finance.groups.yahoo.com/group/TWSAPI/files/RPM%20spec%20file/
- cd ${srcdir}/IBJts
- jar xf jts.jar trader/common/images/ibapp_icon_48x48.gif
- jar xf jts.jar trader/common/images/quote_details_48x48.jpg
- convert trader/common/images/ibapp_icon_48x48.gif ${pkgname}.png
- convert trader/common/images/ibapp_icon_48x48.gif -resize 66.666% ${pkgname}-32x32.png
- convert trader/common/images/ibapp_icon_48x48.gif -resize 33.333% ${pkgname}-16x16.png
- convert trader/common/images/ibapp_icon_48x48.gif ${pkgname}-48x48.png
- convert trader/common/images/quote_details_48x48.jpg ib-gw.png
- convert trader/common/images/quote_details_48x48.jpg -resize 66.666% ib-gw-32x32.png
- convert trader/common/images/quote_details_48x48.jpg -resize 33.333% ib-gw-16x16.png
- convert trader/common/images/quote_details_48x48.jpg ib-gw-48x48.png
+ cd ${srcdir}
+ chmod +x tws-latest-standalone-linux-x64.sh
+ # Assumes no other Install4J packages are in use by user; if so, makepkg from dedicated user account
+ rm -rf $HOME/.install4j $HOME/.i4j_jres $HOME/Jts
+ ./tws-latest-standalone-linux-x64.sh -q
+ majorVer=$(echo "$pkgver" | sed "s/\([0-9]\+\)\..*/\1/")
+ mv ${HOME}/Jts/${majorVer}/jars/*.jar ${srcdir}
+ rm -rf $HOME/.install4j $HOME/.i4j_jres $HOME/Jts
+ cd ${srcdir}
+
+ # Thanks to http://finance.groups.yahoo.com/group/TWSAPI/files/RPM%20spec%20file/
+ jar xf jts.jar trader/common/images/ibapp_icon_48x48.gif
+ jar xf jts.jar trader/common/images/quote_details_48x48.jpg
+ convert trader/common/images/ibapp_icon_48x48.gif ${pkgname}.png
+ convert trader/common/images/ibapp_icon_48x48.gif -resize 66.666% ${pkgname}-32x32.png
+ convert trader/common/images/ibapp_icon_48x48.gif -resize 33.333% ${pkgname}-16x16.png
+ convert trader/common/images/ibapp_icon_48x48.gif ${pkgname}-48x48.png
+ convert trader/common/images/quote_details_48x48.jpg ib-gw.png
+ convert trader/common/images/quote_details_48x48.jpg -resize 66.666% ib-gw-32x32.png
+ convert trader/common/images/quote_details_48x48.jpg -resize 33.333% ib-gw-16x16.png
+ convert trader/common/images/quote_details_48x48.jpg ib-gw-48x48.png
}
package() {
- cd ${srcdir}
- mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
- install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
- install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
- install -Dm755 ib-gw ${pkgdir}/usr/bin/ib-gw
- install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
- install -Dm644 ib-gw.desktop ${pkgdir}/usr/share/applications/ib-gw.desktop
- cd ${srcdir}/IBJts
- mkdir -p ${pkgdir}/usr/share/pixmaps/
- install -Dm644 *.png "${pkgdir}/usr/share/pixmaps/"
- mkdir -p ${pkgdir}/usr/share/java/${pkgname}
- install -Dm644 *.jar ${pkgdir}/usr/share/java/${pkgname}
- install -Dm644 *.ini ${pkgdir}/usr/share/java/${pkgname}
+ cd ${srcdir}
+ mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
+ install -Dm755 ib-gw ${pkgdir}/usr/bin/ib-gw
+ install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
+ install -Dm644 ib-gw.desktop ${pkgdir}/usr/share/applications/ib-gw.desktop
+ mkdir -p ${pkgdir}/usr/share/pixmaps/
+ install -Dm644 *.png "${pkgdir}/usr/share/pixmaps/"
+ mkdir -p ${pkgdir}/usr/share/java/${pkgname}
+ install -Dm644 *.jar ${pkgdir}/usr/share/java/${pkgname}
}