diff options
Diffstat (limited to 'network/psi/psi.SlackBuild')
-rw-r--r-- | network/psi/psi.SlackBuild | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/network/psi/psi.SlackBuild b/network/psi/psi.SlackBuild index 3a91dfe892..2043ea4c63 100644 --- a/network/psi/psi.SlackBuild +++ b/network/psi/psi.SlackBuild @@ -2,12 +2,31 @@ # Slackware build script for psi -# Written by Eugene Wissner <eugen@flevum.de> +# Written by Eugene Wissner <belka.ew@gmail.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=psi -VERSION=${VERSION:-0.14} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.15} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +RC=${RC:-rc2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -39,9 +58,17 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION + +if [ -n "$RC" ]; then + rm -rf $PRGNAM-$VERSION-$RC + tar xvf $CWD/$PRGNAM-$VERSION-$RC.tar.bz2 + cd $PRGNAM-$VERSION-$RC +else + rm -rf $PRGNAM-$VERSION + tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 + cd $PRGNAM-$VERSION +fi + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -75,4 +102,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$RC-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |