development/tcc: Updated for version 0.9.27.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2018-01-01 11:06:37 +00:00 committed by Willy Sudiarto Raharjo
parent 4db5db332c
commit 63b9ba6735
2 changed files with 17 additions and 19 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for tiny c compiler
# Copyright (c) 2010-2013 Markus Reichelt, Stolberg (Rhld), DE
# Copyright (c) 2010-2018 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@ -27,15 +27,15 @@
# in memoriam of Georg Ohler
PRGNAM=tcc
VERSION=${VERSION:-0.9.26}
VERSION=${VERSION:-0.9.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
*) ARCH=$( uname -m ) ;;
esac
fi
@ -44,8 +44,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -80,14 +80,17 @@ fi
mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc $PKG/usr/include
DFLAGS=$LDFLAGS \
CFLAGS=$SLKCFLAGS \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sharedir=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sharedir=/usr $OPT
--docdir=/usr/doc/$PRGNAM-$VERSION \
$OPT
make
make -j1 test
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@ -96,14 +99,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
gzip -9 $PKG/usr/info/*.info
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/doc/tcc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/doc/tcc/
cp -a README* Changelog* COPYING TODO examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README* Changelog* COPYING RELICENSING examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="tcc"
VERSION="0.9.26"
VERSION="0.9.27"
HOMEPAGE="http://www.tinycc.org/"
DOWNLOAD="http://download.savannah.nongnu.org/releases/tinycc/tcc-0.9.26.tar.bz2"
MD5SUM="5fb28e4abc830c46a7f54c1f637fb25d"
DOWNLOAD="http://download.savannah.nongnu.org/releases/tinycc/tcc-0.9.27.tar.bz2"
MD5SUM="9cdb185555da76db90287db351ca40b8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""