development/fpc: Updated for version 3.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andre Barboza 2016-06-21 11:48:06 +07:00 committed by Willy Sudiarto Raharjo
parent 576cdd3494
commit 4202d5e9b5
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 23 additions and 20 deletions

View File

@ -24,7 +24,8 @@
# Modified by the SlackBuilds.org project. # Modified by the SlackBuilds.org project.
PRGNAM=fpc PRGNAM=fpc
VERSION=${SRCVER:-2.6.4} VERSION=${SRCVER:-3.0.0}
BINVERSION=${BINVERSION:-2.6.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -57,32 +58,32 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION ${PRGNAM}build-$VERSION rm -rf $PRGNAM-$BINVERSION ${PRGNAM}build-$VERSION
mkdir $PRGNAM-$VERSION ${PRGNAM}build-$VERSION mkdir $PRGNAM-$BINVERSION ${PRGNAM}build-$VERSION
cd $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$BINVERSION
tar xvf $CWD/$PRGNAM-$VERSION.$ARCH-linux.tar --strip-components=1 tar xvf $CWD/$PRGNAM-$BINVERSION.$ARCH-linux.tar --strip-components=1
cd $TMP/${PRGNAM}build-$VERSION cd $TMP/${PRGNAM}build-$VERSION
tar xvf $CWD/${PRGNAM}build-$VERSION.tar.gz tar xvf $CWD/${PRGNAM}build-$VERSION.tar.gz
# Unpack binary files. # Unpack binary files.
( (
mkdir -p $TMP/$PRGNAM-$VERSION/binary mkdir -p $TMP/$PRGNAM-$BINVERSION/binary
cd $TMP/$PRGNAM-$VERSION/binary cd $TMP/$PRGNAM-$BINVERSION/binary
tar xvf $TMP/$PRGNAM-$VERSION/binary.$ARCH-linux.tar tar xvf $TMP/$PRGNAM-$BINVERSION/binary.$ARCH-linux.tar
cd $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$BINVERSION
tar xvf $TMP/$PRGNAM-$VERSION/binary/base.$ARCH-linux.tar.gz tar xvf $TMP/$PRGNAM-$BINVERSION/binary/base.$ARCH-linux.tar.gz
tar xvf $TMP/$PRGNAM-$VERSION/binary/utils.$ARCH-linux.tar.gz tar xvf $TMP/$PRGNAM-$BINVERSION/binary/utils.$ARCH-linux.tar.gz
cd $TMP/$PRGNAM-$VERSION/bin cd $TMP/$PRGNAM-$BINVERSION/bin
if [ "$ARCH" = "x86_64" ]; then if [ "$ARCH" = "x86_64" ]; then
ln -s ../lib/fpc/$VERSION/ppcx64 ln -s ../lib/fpc/$BINVERSION/ppcx64
else else
ln -s ../lib/fpc/$VERSION/ppc386 ln -s ../lib/fpc/$BINVERSION/ppc386
fi fi
) )
export PATH="$TMP/$PRGNAM-$VERSION/bin":$PATH export PATH="$TMP/$PRGNAM-$BINVERSION/bin":$PATH
echo $PATH echo $PATH
cd $TMP/${PRGNAM}build-$VERSION/${PRGNAM}build-$VERSION cd $TMP/${PRGNAM}build-$VERSION/${PRGNAM}build-$VERSION
@ -118,6 +119,8 @@ $PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION/samplecfg \
# Clean up the configs by removing our package directory. # Clean up the configs by removing our package directory.
sed -i -e "s:$PKG::g" $PKG/etc/fpc.cfg sed -i -e "s:$PKG::g" $PKG/etc/fpc.cfg
sed -i -e "s:$PKG::g" $PKG/etc/fppkg.cfg
sed -i -e "s:$PKG::g" $PKG/etc/fppkg/default
sed -i -e "s:$PKG::g" $PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION/ide/text/fp.cfg sed -i -e "s:$PKG::g" $PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION/ide/text/fp.cfg
mv $PKG/etc/fpc.cfg $PKG/etc/fpc.cfg.new mv $PKG/etc/fpc.cfg $PKG/etc/fpc.cfg.new

View File

@ -1,14 +1,14 @@
PRGNAM="fpc" PRGNAM="fpc"
VERSION="2.6.4" VERSION="3.0.0"
HOMEPAGE="http://www.freepascal.org/" HOMEPAGE="http://www.freepascal.org/"
DOWNLOAD="http://downloads.sourceforge.net/freepascal/fpc-2.6.4.i386-linux.tar \ DOWNLOAD="http://downloads.sourceforge.net/freepascal/fpc-2.6.4.i386-linux.tar \
http://downloads.sourceforge.net/freepascal/fpcbuild-2.6.4.tar.gz" http://downloads.sourceforge.net/freepascal/fpcbuild-3.0.0.tar.gz"
MD5SUM="915f799dd58b5429f06a48d4bd84a9c2 \ MD5SUM="915f799dd58b5429f06a48d4bd84a9c2 \
403da132aed194fd841d46c3b33b022a" bb7d17ef5c7c007466368262c0779cb7"
DOWNLOAD_x86_64="http://downloads.sourceforge.net/freepascal/fpc-2.6.4.x86_64-linux.tar \ DOWNLOAD_x86_64="http://downloads.sourceforge.net/freepascal/fpc-2.6.4.x86_64-linux.tar \
http://downloads.sourceforge.net/freepascal/fpcbuild-2.6.4.tar.gz" http://downloads.sourceforge.net/freepascal/fpcbuild-3.0.0.tar.gz"
MD5SUM_x86_64="ffc3cae4a72b60efb6873b9ce5c8a0f2 \ MD5SUM_x86_64="ffc3cae4a72b60efb6873b9ce5c8a0f2 \
403da132aed194fd841d46c3b33b022a" bb7d17ef5c7c007466368262c0779cb7"
REQUIRES="" REQUIRES=""
MAINTAINER="Andre Barboza" MAINTAINER="Andre Barboza"
EMAIL="bmg.andre@gmail.com" EMAIL="bmg.andre@gmail.com"