diff options
Diffstat (limited to 'development/fpc/fpc.SlackBuild')
-rw-r--r-- | development/fpc/fpc.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/development/fpc/fpc.SlackBuild b/development/fpc/fpc.SlackBuild index dfc7f29238a3..228f03fd7bed 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 |