diff options
author | Kyle Guinn <elyk03@gmail.com> | 2022-03-27 13:41:24 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:18:40 +0700 |
commit | f843bcc8d81d04852e37931f5b976af95066ee2d (patch) | |
tree | 5fc0117e397e07263e7c79d2ab7131e047165a6f /development/sdcc/sdcc.SlackBuild | |
parent | e6b85d587cf0c039fd5a6c1e5d5616907f9da182 (diff) |
development/sdcc: Updated for version 4.2.0
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/sdcc/sdcc.SlackBuild')
-rw-r--r-- | development/sdcc/sdcc.SlackBuild | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/development/sdcc/sdcc.SlackBuild b/development/sdcc/sdcc.SlackBuild index 7733f67f9b..df93915592 100644 --- a/development/sdcc/sdcc.SlackBuild +++ b/development/sdcc/sdcc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sdcc -# Copyright 2014-2021 Kyle Guinn <elyk03@gmail.com> +# Copyright 2014-2022 Kyle Guinn <elyk03@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sdcc -VERSION=${VERSION:-4.1.0} +VERSION=${VERSION:-4.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -74,9 +71,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM +rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-src-$VERSION.tar.bz2 -cd $PRGNAM +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go-w,a+rX-st . @@ -88,10 +85,7 @@ chmod -x device/lib/isinf.c device/lib/isnan.c # up afterwards. Delete some byproducts that they missed. patch -p1 < $CWD/patches/source-tree.patch -# Avoid creating empty man directories. -sed -i '/(man1dir)/d' sim/ucsim/doc/Makefile.in - -# Requires lyx, latex2html, possibly others. Untested. +# Requires lyx and latex2html. if [ "${ENABLE_DOC:-no}" != 'no' ]; then enable_doc='--enable-doc' fi @@ -128,6 +122,7 @@ find $PKG -exec file {} + | grep -e "executable" -e "shared object" | grep ELF \ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a sdas/doc $PKG/usr/doc/$PRGNAM-$VERSION/sdas cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |