diff options
author | GPLeo <gpleomail@gmail.com> | 2010-08-28 08:05:26 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-29 15:32:14 -0500 |
commit | fb3448c3b38ba74fb986eb62fec4819253a58af4 (patch) | |
tree | 562a9e0f52230409d4d2e278f1e674ddd7af53c8 /development/logisim/logisim.SlackBuild | |
parent | a37a961b48ef5349db84e1de49ff14719240c313 (diff) |
development/logisim: Added (logic simulator)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/logisim/logisim.SlackBuild')
-rw-r--r-- | development/logisim/logisim.SlackBuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/development/logisim/logisim.SlackBuild b/development/logisim/logisim.SlackBuild new file mode 100644 index 0000000000000..4a3a4682ee27b --- /dev/null +++ b/development/logisim/logisim.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh +# +# Slackware build script for logisim +# +# Copyright 2010 GPLeo <gpleomail@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=logisim +VERSION=${VERSION:-2.4.0} +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +install -Dm644 $CWD/$PRGNAM-generic-$VERSION.jar \ + $PKG/opt/logisim/$PRGNAM-generic-$VERSION.jar + +mkdir -p $PKG/usr/bin + +cat << EOF > $PKG/usr/bin/$PRGNAM +cd /opt/logisim/ +java -jar $PRGNAM-generic-$VERSION.jar +EOF + +chmod 0755 $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |