aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2020-05-09 13:55:22 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-10 08:37:02 +0700
commit740088469f159803dd51d5f1fd49a927be7ff17b (patch)
tree6bc2cf2d25908cce174e28233ad4116a9c5aee7b
parent3f1a0907d814d3b8780b1ab8fc374a64ba4b9c78 (diff)
academic/chartgeany: Added (market analysis tool)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/chartgeany/README6
-rw-r--r--academic/chartgeany/chartgeany.SlackBuild106
-rw-r--r--academic/chartgeany/chartgeany.info10
-rw-r--r--academic/chartgeany/doinst.sh3
-rw-r--r--academic/chartgeany/slack-desc19
5 files changed, 144 insertions, 0 deletions
diff --git a/academic/chartgeany/README b/academic/chartgeany/README
new file mode 100644
index 000000000000..0b49fa40f020
--- /dev/null
+++ b/academic/chartgeany/README
@@ -0,0 +1,6 @@
+Chart Geany is a cross platform software solution for market technical
+analysis and charting.
+
+Optional: qt5
+
+QT5GUI=yes ./chartgeany.SlackBuild
diff --git a/academic/chartgeany/chartgeany.SlackBuild b/academic/chartgeany/chartgeany.SlackBuild
new file mode 100644
index 000000000000..7c9da765d86a
--- /dev/null
+++ b/academic/chartgeany/chartgeany.SlackBuild
@@ -0,0 +1,106 @@
+#!/bin/sh
+
+# Slackware build script for chartgeany
+
+# Copyright 2020 Larry Hajali <larryhaja[at]gmail[dot]com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=chartgeany
+VERSION=${VERSION:-6.1.5}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Fix file locaations.
+sed -i '/^target.path/s|= /opt/$$PKG_NAME|= /usr/bin|' \
+ ChartGeany/ChartGeany.pro cgtool/cgtool.pro
+sed -i '/^images.path/s|= /opt/$$PKG_NAME|= /usr/share/pixmaps|' \
+ ChartGeany/ChartGeany.pro
+sed -i "s|/opt/$PRGNAM/||" ChartGeany/chartgeany.desktop
+
+if [ "${QT5GUI:-no}" == "yes" ]; then
+ qmake-qt5 PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ -o Makefile $PRGNAM.pro
+else
+ qmake PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ -o Makefile $PRGNAM.pro
+fi
+
+make
+make install INSTALL_ROOT=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+chmod 0644 $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING Changelog \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/academic/chartgeany/chartgeany.info b/academic/chartgeany/chartgeany.info
new file mode 100644
index 000000000000..83d6be57c849
--- /dev/null
+++ b/academic/chartgeany/chartgeany.info
@@ -0,0 +1,10 @@
+PRGNAM="chartgeany"
+VERSION="6.1.5"
+HOMEPAGE="https://sourceforge.net/projects/chart-geany/"
+DOWNLOAD="https://downloads.sourceforge.net/chart-geany/chartgeany-6.1.5.tar.gz"
+MD5SUM="c2f0acdc7025de66ff6cbcba65212751"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libxls"
+MAINTAINER="Larry Hajali"
+EMAIL="larryhaja[at]gmail[dot]com"
diff --git a/academic/chartgeany/doinst.sh b/academic/chartgeany/doinst.sh
new file mode 100644
index 000000000000..5fb28930db0b
--- /dev/null
+++ b/academic/chartgeany/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/academic/chartgeany/slack-desc b/academic/chartgeany/slack-desc
new file mode 100644
index 000000000000..cb4c4a3b5cb2
--- /dev/null
+++ b/academic/chartgeany/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+chartgeany: chartgeany (market analysis tool)
+chartgeany:
+chartgeany: Chart Geany is a cross platform software solution for market technical
+chartgeany: analysis and charting.
+chartgeany:
+chartgeany: Homepage: https://sourceforge.net/projects/chart-geany/
+chartgeany:
+chartgeany:
+chartgeany:
+chartgeany:
+chartgeany: