From a5138598067de7f070e267d38991afdf5921f55b Mon Sep 17 00:00:00 2001 From: "R. S. Ananda Murthy" Date: Mon, 23 Jun 2014 01:03:40 +0700 Subject: [PATCH] development/edsim51di: Added (An 8051 Simulator). Signed-off-by: Willy Sudiarto Raharjo --- development/edsim51di/README | 4 + development/edsim51di/doinst.sh | 9 ++ development/edsim51di/edsim51di.SlackBuild | 111 +++++++++++++++++++++ development/edsim51di/edsim51di.info | 10 ++ development/edsim51di/edsim51di.png | Bin 0 -> 5266 bytes development/edsim51di/license.txt | 8 ++ development/edsim51di/slack-desc | 19 ++++ 7 files changed, 161 insertions(+) create mode 100644 development/edsim51di/README create mode 100644 development/edsim51di/doinst.sh create mode 100644 development/edsim51di/edsim51di.SlackBuild create mode 100644 development/edsim51di/edsim51di.info create mode 100644 development/edsim51di/edsim51di.png create mode 100644 development/edsim51di/license.txt create mode 100644 development/edsim51di/slack-desc diff --git a/development/edsim51di/README b/development/edsim51di/README new file mode 100644 index 0000000000..ff70e8211d --- /dev/null +++ b/development/edsim51di/README @@ -0,0 +1,4 @@ +EdSim51, developed by James Rogers, is a 8051 microcontroller simulator. +Unlike many industry-standard simulators that are widely available +this simulator has the student in mind. This simulator will be very +helpful to the students to learn programming 8051. diff --git a/development/edsim51di/doinst.sh b/development/edsim51di/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/development/edsim51di/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/development/edsim51di/edsim51di.SlackBuild b/development/edsim51di/edsim51di.SlackBuild new file mode 100644 index 0000000000..af02cc40cd --- /dev/null +++ b/development/edsim51di/edsim51di.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/sh + +# Slackware build script for EdSim51Di + +# Copyright 2014 R. S. Ananda Murthy, Mysore, India +# 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=edsim51di +VERSION=${VERSION:-2.1.14} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +STARTDIR=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +unzip $CWD/$PRGNAM.zip +cd $PRGNAM +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p "$PKG/usr/share/$PRGNAM/lib" \ + "$PKG/usr/share/applications" \ + "$PKG/usr/share/icons/hicolor/48x48/apps" \ + "$PKG/usr/bin" \ + "$PKG/usr/doc/$PRGNAM-$VERSION" +install -D -m644 $PRGNAM.jar $PKG/usr/share/$PRGNAM/ +install -D -m644 ./lib/edsim51sh.jar $PKG/usr/share/$PRGNAM/lib/ +install -D -m644 $STARTDIR/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/ +install -D -m644 $STARTDIR/license.txt $PKG/usr/doc/$PRGNAM-$VERSION/ +cat $STARTDIR/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/slack-desc > $PKG/install/slack-desc + +cat < $PKG/usr/share/applications/$PRGNAM.desktop +[Desktop Entry] +Name=Edsim51DI +Comment=An educational tool for learning 8051 microcontroller +Exec=edsim51di +Icon=edsim51di +Terminal=false +Type=Application +Categories=Education +StartupNotify=false +EOF + +cat < $PKG/usr/bin/edsim51di +#!/bin/bash +#execute edsim51di jar file +exec java -jar /usr/share/edsim51di/edsim51di.jar +EOF +chmod +x $PKG/usr/bin/edsim51di + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/edsim51di/edsim51di.info b/development/edsim51di/edsim51di.info new file mode 100644 index 0000000000..2574f73da3 --- /dev/null +++ b/development/edsim51di/edsim51di.info @@ -0,0 +1,10 @@ +PRGNAM="edsim51di" +VERSION="2.1.14" +HOMEPAGE="http://www.edsim51.com/" +DOWNLOAD="http://www.edsim51.com/8051simulator/edsim51di.zip" +MD5SUM="f934533688eaec9a03a7939185f41103" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="openjdk" +MAINTAINER="R. S. Ananda Murthy" +EMAIL="rsamurti@gmail.com" diff --git a/development/edsim51di/edsim51di.png b/development/edsim51di/edsim51di.png new file mode 100644 index 0000000000000000000000000000000000000000..5d92fd15a91fb80bf40c0688e5e14bab3391c400 GIT binary patch literal 5266 zcmV;D6m9E?P)iG!pPrD{udl^bQ)4HVkD-gskp;XlCk|Kx?e z^uhvcw1GD4UbN8-x4TrTDymeJL@`MwbA0oi&*a5qu`CulqHE*K&R1_%Mx1`E9hW5erl1Tq3`z*s?+fOXJm z5O^X9Q6!K;FdBF^#-2e>FdBkV&~(r}KEvr#Y`7ul(|J1W8TP`xss=m} zN#sf5aJMvxNK-*1EolN-7VfDH7-MOxBZSO|r9xD{&VAPzj4>pMM2K*55YcvyuCw@c zi2d5ysu6S=20f2j8(h=^Yr|;`GLQB-jqZbYG_Ao}Prs+Y*BIRpMFQ|x7t!c3Qnd7v zl0grg7|@ywr{{n{u5l*?#4+@9&uBCt?+sClWxYOC=woqCV5~q&jd$SIxOFbT;S$42 zL7D_3v=Mj@)_bIv2$hjVLy~-hC>hb(l+FrL(P7(D+WHi&+mI8|lO-)#V#tzUWYZez zrbVn_=zXxmx&YOx0p}~cYfxuXfe?Zu7G$ZT?L4azoDY_YHNKk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