diff options
author | Petar Petrov <ppetrov@paju.oulu.fi> | 2011-09-03 08:48:36 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-03 08:48:36 -0300 |
commit | e99cd4194e8f9a55163744b64d2e425a27c6e6ae (patch) | |
tree | bf8ea954a45c322cdb740d993f4e60204d275239 /academic/amplicon/amplicon.SlackBuild | |
parent | 0c0bcd261ba7669de0365ad4142bd054c48be41c (diff) |
academic/amplicon: Added (Design PCR primers)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/amplicon/amplicon.SlackBuild')
-rw-r--r-- | academic/amplicon/amplicon.SlackBuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/academic/amplicon/amplicon.SlackBuild b/academic/amplicon/amplicon.SlackBuild new file mode 100644 index 0000000000000..715746b531575 --- /dev/null +++ b/academic/amplicon/amplicon.SlackBuild @@ -0,0 +1,51 @@ +#!/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. + +PRGNAM=amplicon +VERSION=${VERSION:-b09.1} +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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 $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +gunzip -c $CWD/Amplicon-Linux-$VERSION.py.gz > amplicon.py + +# Fix the window size +sed "s:root.maxsize(965,570):root.maxsize(1400,800):" -i amplicon.py + +install -D -m755 amplicon.py $PKG/usr/bin/amplicon.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 + +mkdir -p $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 + +mkdir -p $PKG/install +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} |