summaryrefslogtreecommitdiff
path: root/office/ganttproject/ganttproject.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-02-25 15:44:06 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-28 11:37:06 +0700
commit78edbebc86d5072fa40de00e619d58a3971d2039 (patch)
treec0ebfa190e63094bac23aca2afa03e9ab9c299f2 /office/ganttproject/ganttproject.SlackBuild
parent8915120b2472764e791285b3739c169687aee4c5 (diff)
downloadslackbuilds-78edbebc86d5072fa40de00e619d58a3971d2039.tar.gz
office/ganttproject: Updated for version 2.7.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'office/ganttproject/ganttproject.SlackBuild')
-rw-r--r--office/ganttproject/ganttproject.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/office/ganttproject/ganttproject.SlackBuild b/office/ganttproject/ganttproject.SlackBuild
index e366278ee2..ae6630568b 100644
--- a/office/ganttproject/ganttproject.SlackBuild
+++ b/office/ganttproject/ganttproject.SlackBuild
@@ -25,14 +25,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ganttproject
-VERSION=${VERSION:-2.6.6_r1715} # dashes in $VERSION confuse pkgtool
+VERSION=${VERSION:-2.7}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-## source version now relies on commit hash
-SRCVERSION=${SRCVERSION:-9cc2cf862fc4}
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -46,9 +43,13 @@ mkdir -p \
$PKG/{opt/ganttproject,usr/{bin,share/{applications,pixmaps,mime/packages}}} \
$OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION
-tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
-cd $PRGNAM-$SRCVERSION
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+if [ -e $CWD/$PRGNAM-$VERSION.tar.gz ]; then
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
+fi
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -64,7 +65,7 @@ cp -a eclipsito.jar ganttproject plugins $PKG/opt/ganttproject
chmod 755 $PKG/opt/ganttproject/ganttproject
# This is for CLI users:
-ln -s /opt/ganttproject/ganttproject $PKG/usr/bin/
+ln -sf /opt/ganttproject/ganttproject $PKG/usr/bin/
# And this is for GUI users:
cp \