summaryrefslogtreecommitdiff
path: root/academic/plasmidomics/plasmidomics.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-12-20 00:29:09 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-20 00:29:09 -0600
commitb1a0885b39abe24f9ce7b4926c9c5ae75f583185 (patch)
tree7c20f65e4236d40a4e49c67edf73f335d3da1eca /academic/plasmidomics/plasmidomics.SlackBuild
parentadbc3285dbb039d2db65ea0e628ba8299c4255cb (diff)
downloadslackbuilds-b1a0885b39abe24f9ce7b4926c9c5ae75f583185.tar.gz
academic/plasmidomics: Include manual page and better icon
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/plasmidomics/plasmidomics.SlackBuild')
-rw-r--r--academic/plasmidomics/plasmidomics.SlackBuild41
1 files changed, 28 insertions, 13 deletions
diff --git a/academic/plasmidomics/plasmidomics.SlackBuild b/academic/plasmidomics/plasmidomics.SlackBuild
index a553c5b93b..8c06ffacf9 100644
--- a/academic/plasmidomics/plasmidomics.SlackBuild
+++ b/academic/plasmidomics/plasmidomics.SlackBuild
@@ -1,19 +1,34 @@
#!/bin/sh
# Slackware build script for plasmidomics
-# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and
-# hereby submitted to the public domain
-# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING
-# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_
-# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT.
+# Copyright 2011 Petar Petrov, ppetrov@paju.oulu.fi
+# 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=plasmidomics
VERSION=${VERSION:-0.2}
-ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+ARCH=noarch
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -25,20 +40,20 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
-install -D -m755 plasmid $PKG/usr/bin/plasmidomics
+install -D -m755 plasmid $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/man/man1
+gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
-# Menu item and icon
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYRIGHT README \
- $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -a AUTHORS COPYRIGHT README $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install