summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBen Alex2015-06-10 13:49:23 +1000
committerBen Alex2015-06-10 13:49:23 +1000
commit8da1339d174ca9919f8137760e2bdf098aed30a4 (patch)
tree6af6bceed6a37079a5a8eca1e648361b916e053c /PKGBUILD
downloadaur-8da1339d174ca9919f8137760e2bdf098aed30a4.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD59
1 files changed, 59 insertions, 0 deletions
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}
+}
+