summaryrefslogtreecommitdiff
path: root/academic/perlprimer/perlprimer.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-09-04 12:59:26 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-04 12:59:26 -0300
commitf82ed85b019ac2ef2166beaf031a2d32947f3011 (patch)
tree4ec77684901fac11a1fb9052acd61e46d09d8903 /academic/perlprimer/perlprimer.SlackBuild
parent776abd8e685f6f33553a143fa83645178842eb75 (diff)
downloadslackbuilds-f82ed85b019ac2ef2166beaf031a2d32947f3011.tar.gz
academic/perlprimer: Added (Design primers for PCR and sequencing)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/perlprimer/perlprimer.SlackBuild')
-rw-r--r--academic/perlprimer/perlprimer.SlackBuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/academic/perlprimer/perlprimer.SlackBuild b/academic/perlprimer/perlprimer.SlackBuild
new file mode 100644
index 0000000000..87be393b78
--- /dev/null
+++ b/academic/perlprimer/perlprimer.SlackBuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Slackware build script for perlprimer
+# 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=perlprimer
+VERSION=${VERSION:-1.1.20}
+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
+tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+
+install -D -m755 perlprimer.pl $PKG/usr/bin/perlprimer.pl
+
+# 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 \
+ Changelog ReadMe.txt todo tutorial.html tutorial_files \
+ $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}