summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--LICENSE27
-rw-r--r--PKGBUILD59
-rw-r--r--ib-gw4
-rw-r--r--ib-gw.desktop9
-rw-r--r--ib-tws4
-rw-r--r--ib-tws.desktop9
7 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cf6e38a3a50
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = ib-tws
+ pkgdesc = Electronic trading platform from discount brokerage firm Interactive Brokers
+ pkgver = 949.3e
+ pkgrel = 1
+ url = http://interactivebrokers.com/
+ arch = any
+ license = custom
+ makedepends = imagemagick
+ depends = java-environment
+ depends = bash
+ source = LICENSE
+ source = ib-tws
+ source = ib-tws.desktop
+ source = ib-gw
+ source = ib-gw.desktop
+ source = http://download2.interactivebrokers.com/download/unixmacosx_latest.jar
+ md5sums = e1cae2de592add7133bb08123e8db1ad
+ md5sums = c407d22dfafdb33ec2fe97eeb5e9f0aa
+ md5sums = 9205b5eade96d69f8e470cc52c30db4a
+ md5sums = c95eeb41fec3aae6ad5e82703a39060c
+ md5sums = ffa9fcfb623850e5c9e796040bdbd052
+ md5sums = 0d34d5f35335523c3833cb06623d06ce
+
+pkgname = ib-tws
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..154aa82d6ba
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Copied from "Help > About Trader Workstation..." menu item
+
+============================
+
+Trader Workstation Copyright © 2000 LICENSOR to Interactive Brokers ALL RIGHTS RESERVED
+
+This software is covered by U.S. Patent No. 7.827.092.
+
+This software uses JFreeChart class library from Object Refinery Limited under the terms of the GNU Lesser General Public Licence, which can be found here: http://www.object-refinery.com/lgpl.html.
+
+This product includes software developed by the JDOM (http://www.jdom.org/) and ROME (http://rome.dev.java.net) projects.
+
+This software includes software developed by Hypersonic SQL Group under its licence which can be found here http://hsqldb.org/web/hsqlLicense.html.
+
+This product includes unmodified software developed by Pentaho Corporation (Mondrian 2.4.2.9831) under its license that can be found at http://www.pentaho.com/license.
+
+This product uses the "Secure Remote Password" cryptographic authentication system developed by Tom Wu (tjw@CS.Stanford.EDU).
+
+Build 935.3, Jan 17, 2013 6:32:55 PM
+Jolt Build 1.2.1, Jun 7, 2012 05:22:01 PM
+Nia Build 1.11.1, Jun 7, 2012 05:23:19 PM
+ModelNav Build 1.1.45, Nov 16, 2012 04:24:03 PM
+Java Version: 1.7.0_09
+OS: Linux (amd64, 3.7.4-1-ARCH)
+
+Interactive Brokers Home Page
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0e014a413a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Ben Alex <ben.alex@acegi.com.au>
+
+# See https://github.com/benalexau/ib-tws for AUR maintenance helper
+
+pkgname=ib-tws
+pkgver=949.3e
+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)
+
+source=('LICENSE'
+ 'ib-tws'
+ 'ib-tws.desktop'
+ 'ib-gw'
+ 'ib-gw.desktop'
+ 'http://download2.interactivebrokers.com/download/unixmacosx_latest.jar')
+
+md5sums=('e1cae2de592add7133bb08123e8db1ad'
+ 'c407d22dfafdb33ec2fe97eeb5e9f0aa'
+ '9205b5eade96d69f8e470cc52c30db4a'
+ 'c95eeb41fec3aae6ad5e82703a39060c'
+ 'ffa9fcfb623850e5c9e796040bdbd052'
+ '0d34d5f35335523c3833cb06623d06ce')
+
+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
+}
+
+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}
+}
+
diff --git a/ib-gw b/ib-gw
new file mode 100644
index 00000000000..d974ee519fb
--- /dev/null
+++ b/ib-gw
@@ -0,0 +1,4 @@
+#!/bin/bash
+cd /usr/share/java/ib-tws
+$JAVA_HOME/bin/java -cp \* -Xmx512M -XX:MaxPermSize=128M -Dsun.java2d.noddraw=true ibgateway.GWClient $HOME/.ib-tws
+
diff --git a/ib-gw.desktop b/ib-gw.desktop
new file mode 100644
index 00000000000..fcde9463b37
--- /dev/null
+++ b/ib-gw.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=IB Gateway
+Comment=Interactive Brokers proprietary Application Programming Interface client-side endpoint
+Exec=/usr/bin/ib-gw
+Icon=ib-gw
+Terminal=false
+Type=Application
+Categories=Application;Office;Finance;
+
diff --git a/ib-tws b/ib-tws
new file mode 100644
index 00000000000..a498b88fcc5
--- /dev/null
+++ b/ib-tws
@@ -0,0 +1,4 @@
+#!/bin/bash
+cd /usr/share/java/ib-tws
+$JAVA_HOME/bin/java -cp \* -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame $HOME/.ib-tws
+
diff --git a/ib-tws.desktop b/ib-tws.desktop
new file mode 100644
index 00000000000..b5ae75b614e
--- /dev/null
+++ b/ib-tws.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=IB Trader Workstation
+Comment=Electronic trading platform from discount brokerage firm Interactive Brokers
+Exec=/usr/bin/ib-tws
+Icon=ib-tws
+Terminal=false
+Type=Application
+Categories=Application;Office;Finance;
+