summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@gmail.com>2012-09-18 00:35:13 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 00:37:18 -0500
commite0b482ae3cf3637fefb7d649b4d586d6344d338b (patch)
tree906aff37762fcc021445db9908737233088efa11
parent94a0d23a35f4344658487224cacf12b7f9fff16a (diff)
downloadslackbuilds-e0b482ae3cf3637fefb7d649b4d586d6344d338b.tar.gz
office/ProjectLibre: Added (Project Management Software)
This replaces openproj (which was removed in an earlier commit). Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--office/ProjectLibre/ProjectLibre.SlackBuild71
-rw-r--r--office/ProjectLibre/ProjectLibre.info10
-rw-r--r--office/ProjectLibre/README5
-rw-r--r--office/ProjectLibre/projectlibre-path.patch20
-rw-r--r--office/ProjectLibre/slack-desc19
5 files changed, 125 insertions, 0 deletions
diff --git a/office/ProjectLibre/ProjectLibre.SlackBuild b/office/ProjectLibre/ProjectLibre.SlackBuild
new file mode 100644
index 0000000000..82cd1f1277
--- /dev/null
+++ b/office/ProjectLibre/ProjectLibre.SlackBuild
@@ -0,0 +1,71 @@
+#!/bin/sh
+# SlackBuild Script for ProjectLibre
+
+# Copyright 2012 Willy Sudiarto Raharjo <willysr@slackware-id.org>
+# 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 OUTPUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=ProjectLibre
+VERSION=${VERSION:-1.5_beta4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+SRCNAM=projectlibre
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+unzip $CWD/$SRCNAM-$VERSION.zip
+
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Change the installation folder to /opt and fix Java folder
+patch -p1 < $CWD/projectlibre-path.patch
+
+mkdir -p $PKG/opt/$PRGNAM/
+install -m 755 projectlibre.sh $PKG/opt/$PRGNAM/projectlibre.sh
+install -m 755 projectlibre.jar $PKG/opt/$PRGNAM/projectlibre.jar
+cp -rf {lib,license} $PKG/opt/$PRGNAM/
+
+mkdir -p $PKG/usr/bin
+ln -s /opt/ProjectLibre/projectlibre.sh $PKG/usr/bin/projectlibre
+
+mkdir -p $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/ProjectLibre/ProjectLibre.info b/office/ProjectLibre/ProjectLibre.info
new file mode 100644
index 0000000000..866520bc63
--- /dev/null
+++ b/office/ProjectLibre/ProjectLibre.info
@@ -0,0 +1,10 @@
+PRGNAM="ProjectLibre"
+VERSION="1.5_beta4"
+HOMEPAGE="http://sourceforge.net/projects/projectlibre/"
+DOWNLOAD="http://downloads.sourceforge.net/projectlibre/projectlibre-1.5_beta4.zip"
+MD5SUM="a3b0c927e2e2bee3dd6f06607f2538b2"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jdk"
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@gmail.com"
diff --git a/office/ProjectLibre/README b/office/ProjectLibre/README
new file mode 100644
index 0000000000..4b3b48728f
--- /dev/null
+++ b/office/ProjectLibre/README
@@ -0,0 +1,5 @@
+ProjectLibre is a Project Management Software, based on OpenProj,
+replacement of Microsoft Project.
+
+Note: This application does not provide any icon used for desktop
+shortcuts. Run this application by typing "projectlibre" in terminal.
diff --git a/office/ProjectLibre/projectlibre-path.patch b/office/ProjectLibre/projectlibre-path.patch
new file mode 100644
index 0000000000..3fd0795e57
--- /dev/null
+++ b/office/ProjectLibre/projectlibre-path.patch
@@ -0,0 +1,20 @@
+--- projectlibre-1.5_beta4/projectlibre.sh.orig 2012-09-16 15:10:24.135176843 +0700
++++ projectlibre-1.5_beta4/projectlibre.sh 2012-09-16 15:11:14.134177925 +0700
+@@ -52,7 +52,7 @@
+ CONF_DIR="$HOME/.projectlibre"
+ RUN_CONF="$CONF_DIR/run.conf"
+ VERSION_FILE="$CONF_DIR/java-version"
+-JAVA_INSTALL_DIR="/usr/java"
++JAVA_INSTALL_DIR="/usr/lib"
+ JAVA_INSTALL_DIR_EXE="bin/java"
+ JAVA_INSTALL_DIR2="/usr/lib/jvm"
+ JAVA_INSTALL_DIR_EXE2="bin/java"
+@@ -64,7 +64,7 @@
+ JAVA_EXE="java"
+ JAVA_OPTS="-Xms128m -Xmx768m"
+ #OPENPROJ_HOME0="/usr/share/projectlibre"
+-OPENPROJ_HOME0=`(dirname $0)`
++OPENPROJ_HOME0="/opt/ProjectLibre"
+ OPENPROJ_HOME="$OPENPROJ_HOME0"
+ LOG_LEVEL="DEBUG"
+ LOG_FILE="/dev/null"
diff --git a/office/ProjectLibre/slack-desc b/office/ProjectLibre/slack-desc
new file mode 100644
index 0000000000..a76a7684f5
--- /dev/null
+++ b/office/ProjectLibre/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------------------------------------------------------|
+ProjectLibre: ProjectLibre (Project Management Software)
+ProjectLibre:
+ProjectLibre: ProjectLibre is a Project Management Software, based on OpenProj,
+ProjectLibre: replacement of Microsoft Project.
+ProjectLibre:
+ProjectLibre: Homepage: http://sourceforge.net/projects/projectlibre/
+ProjectLibre:
+ProjectLibre:
+ProjectLibre:
+ProjectLibre:
+ProjectLibre: