summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Alex2021-08-25 10:11:09 +1000
committerBen Alex2021-08-25 10:11:09 +1000
commitaee3c20b24d00e6a1a4135d6d5c6f47ed725afe9 (patch)
tree9202ab63d7ebc6b4e38dcbb5012e0a9962550184
parent170464c63fb5a5a289ce7ec967646a4212fba48d (diff)
downloadaur-aee3c20b24d00e6a1a4135d6d5c6f47ed725afe9.tar.gz
Use wildcard to find images now IB have changed version number approach
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b4ba5aa892b..69a077f0c66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,9 +69,8 @@ build() {
rm -f "${HOME}"/Desktop/Trader\ Workstation*.desktop
# Thanks to http://finance.groups.yahoo.com/group/TWSAPI/files/RPM%20spec%20file/
- majorVer=$(echo "$pkgver" | sed "s/\([0-9]\+\)\..*/\1/")
- unzip -o jts4launch-${majorVer}.jar trader/common/images/ibapp_icon_48x48.gif
- unzip -o jts4launch-${majorVer}.jar trader/common/images/quote_details_48x48.jpg
+ unzip -o jts4launch-*.jar trader/common/images/ibapp_icon_48x48.gif
+ unzip -o jts4launch-*.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