diff options
Diffstat (limited to 'development/tcc/tcc.SlackBuild')
-rw-r--r-- | development/tcc/tcc.SlackBuild | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/development/tcc/tcc.SlackBuild b/development/tcc/tcc.SlackBuild index e463f85bed..9536faef40 100644 --- a/development/tcc/tcc.SlackBuild +++ b/development/tcc/tcc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for tiny c compiler -# Copyright (c) 2010,2011 Markus Reichelt, Aachen, DE +# Copyright (c) 2010-2013 Markus Reichelt, Stolberg (Rhld), DE # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -23,14 +23,12 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# markus reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 +# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 # in memoriam of Georg Ohler -# 2010 Aug 23 - initial release -# 2011 Oct 30 - incorporated fixes & Makefile patch from Vincent Batts PRGNAM=tcc -VERSION=${VERSION:-0.9.25} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.9.26} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -80,8 +78,6 @@ if [ "$CROSS" = "yes" ]; then else OPT="" fi -cat $CWD/makefile_destdir.patch | patch -p1 --backup - mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc $PKG/usr/include DFLAGS=$LDFLAGS \ @@ -89,28 +85,22 @@ CFLAGS=$SLKCFLAGS \ ./configure \ --prefix=/usr \ --libdir=/usr/lib$LIBDIRSUFFIX \ - --tccdir=/usr/lib$LIBDIRSUFFIX/tcc \ - --docdir=/usr/doc $OPT - -if [ "$ARCH" = "x86_64" ] ; then - sed -i 's/lib/lib64/' config.h - sed -i 's/lib\//lib64\//' config.mak -fi + --sharedir=/usr $OPT make -#make test # this fails on x86_64 -make install \ - DESTDIR=$PKG \ - tccdir=/usr/lib${LIBDIRSUFFIX}/tcc \ - docdir=/usr/doc/$PRGNAM-$VERSION +make test +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man/man1 -type f -exec gzip -9 {} \; +gzip -9 $PKG/usr/man/man1/*.1 +gzip -9 $PKG/usr/info/*.info mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README* Changelog* COPYING TODO $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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |