summaryrefslogtreecommitdiffstats
path: root/development/simavr
diff options
context:
space:
mode:
Diffstat (limited to 'development/simavr')
-rw-r--r--development/simavr/simavr.SlackBuild16
-rw-r--r--development/simavr/simavr.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/development/simavr/simavr.SlackBuild b/development/simavr/simavr.SlackBuild
index a8b989b385..ff8f814434 100644
--- a/development/simavr/simavr.SlackBuild
+++ b/development/simavr/simavr.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for simavr
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=simavr
VERSION=${VERSION:-git20170904}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -91,4 +101,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/simavr/simavr.info b/development/simavr/simavr.info
index 7f53eb0858..613770d068 100644
--- a/development/simavr/simavr.info
+++ b/development/simavr/simavr.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://www.dropbox.com/s/wizo8j0fmcq14mr/simavr-git20170904.tar.gz"
MD5SUM="93f10b449440603adc3bcea298059ae3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="avr-gcc avr-libc"
+REQUIRES="avr-libc"
MAINTAINER="R. S. Ananda Murthy"
EMAIL="rsamurti@gmail.com"