aboutsummaryrefslogtreecommitdiff
path: root/development/fpc/fpc.SlackBuild
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2012-04-15 22:19:55 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-16 05:35:59 -0500
commit8eb682b49fa8e17fe7f9435032e7675ccfbed222 (patch)
tree86b770d1b71f9f218b43813b01d3e931a03eb06d /development/fpc/fpc.SlackBuild
parentc2f51a1d9ff292c03d4cb192775ebf2b50c54473 (diff)
development/fpc: Updated for version 2.6.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/fpc/fpc.SlackBuild')
-rw-r--r--development/fpc/fpc.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/development/fpc/fpc.SlackBuild b/development/fpc/fpc.SlackBuild
index dfc7f29238a3b..228f03fd7beda 100644
--- a/development/fpc/fpc.SlackBuild
+++ b/development/fpc/fpc.SlackBuild
@@ -24,9 +24,9 @@
# Modified by the SlackBuilds.org project.
PRGNAM=fpc
-VERSION=${SRCVER:-2.4.4}
+VERSION=${SRCVER:-2.6.0}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -52,7 +52,7 @@ else
exit 1
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -60,7 +60,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.$ARCH-linux.tar
+tar xvf $CWD/$PRGNAM-$VERSION.$ARCH-linux.tar --strip-components=1
# Unpack docs, binary, and demo files.
(
@@ -91,10 +91,16 @@ else
ln -s ../lib$LIBDIRSUFFIX/fpc/$VERSION/ppc386
fi
-# copy docs
+# copy docs
mv $PKG/usr/share/doc $PKG/usr/doc
rmdir $PKG/usr/share
-mv $TMP/$PRGNAM-$VERSION/docs/doc/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION
+# No idea why, but the pdf docs are in different places depending on arch
+if [ "$ARCH" = "x86_64" ]; then
+ mv $TMP/$PRGNAM-$VERSION/docs/doc/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION
+else
+ mv $TMP/$PRGNAM-$VERSION/docs/share/doc/fpdocs-$VERSION/*.pdf \
+ $PKG/usr/doc/$PRGNAM-$VERSION/
+fi
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -type d -name '.svn' | xargs rm -rf
@@ -107,7 +113,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/etc $PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION/ide/text
$PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION/samplecfg \
$PKG/usr/lib$LIBDIRSUFFIX/fpc/$VERSION \
- $PKG/etc
+ $PKG/etc
# Clean up the configs by removing our package directory.
sed -i -e "s:$PKG::g" $PKG/etc/fpc.cfg