office/ProjectLibre: Added (Project Management Software)

This replaces openproj (which was removed in an earlier
commit).

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2012-09-18 00:35:13 -05:00 committed by Robby Workman
parent 94a0d23a35
commit e0b482ae3c
5 changed files with 125 additions and 0 deletions

View file

@ -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}

View file

@ -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"

View file

@ -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.

View file

@ -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"

View file

@ -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: