aboutsummaryrefslogtreecommitdiff
path: root/academic/amplicon/amplicon.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-12-20 00:05:26 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-20 00:05:26 -0600
commitedd24e87e746a5a027d392979f1fc29edd245986 (patch)
tree7e9b6403c00f1afbb89a0afe804db4af940da1fc /academic/amplicon/amplicon.SlackBuild
parent33ecf5d1ad04b70604072fe0cc9205907428675c (diff)
academic/amplicon: Included the manual in the package
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/amplicon/amplicon.SlackBuild')
-rw-r--r--academic/amplicon/amplicon.SlackBuild42
1 files changed, 29 insertions, 13 deletions
diff --git a/academic/amplicon/amplicon.SlackBuild b/academic/amplicon/amplicon.SlackBuild
index 715746b53157..24ebdf4da934 100644
--- a/academic/amplicon/amplicon.SlackBuild
+++ b/academic/amplicon/amplicon.SlackBuild
@@ -1,19 +1,34 @@
#!/bin/sh
# Slackware build script for amplicon
-# 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=amplicon
VERSION=${VERSION:-b09.1}
-ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+ARCH=noarch
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -27,19 +42,20 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-gunzip -c $CWD/Amplicon-Linux-$VERSION.py.gz > amplicon.py
+gunzip -c $CWD/Amplicon-Linux-$VERSION.py.gz > $PRGNAM.py
+unzip $CWD/AmpliconManualb06.zip
# Fix the window size
-sed "s:root.maxsize(965,570):root.maxsize(1400,800):" -i amplicon.py
+sed "s:root.maxsize(965,570):root.maxsize(1400,800):" -i $PRGNAM.py
-install -D -m755 amplicon.py $PKG/usr/bin/amplicon.py
+install -D -m755 $PRGNAM.py $PKG/usr/bin/$PRGNAM.py
-# Manu item and icon
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cp $CWD/amplicon.desktop $PKG/usr/share/applications/
-cp $CWD/amplicon.png $PKG/usr/share/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 AmpliconManualVersion2.doc $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References