diff options
Diffstat (limited to '')
-rwxr-xr-x | compat32-tools/compat32-tools.SlackBuild | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/compat32-tools/compat32-tools.SlackBuild b/compat32-tools/compat32-tools.SlackBuild index b22d72c..587e45f 100755 --- a/compat32-tools/compat32-tools.SlackBuild +++ b/compat32-tools/compat32-tools.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright (c) 2009 Frederick Emmott <fred@slackware.com> -# Copyright (c) 2009, 2010, 2011, 2012, 2013 Eric Hameleers, Eindhoven, NL +# Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +23,10 @@ PRGNAM=compat32-tools -VERSION=3.1 +VERSION=3.2 ARCH=noarch TAG=${TAG:-alien} -BUILD=${BUILD:-5} - +BUILD=${BUILD:-1} CWD=$(pwd) TMP=${TMP:-/tmp} @@ -41,11 +40,13 @@ mkdir -p $PKG/etc/profile.d install -o root -m644 $CWD/32dev.sh $PKG/etc/profile.d/32dev.sh install -o root -m644 $CWD/32dev.csh $PKG/etc/profile.d/32dev.csh - # Add the 'gcc' wrapper script to be used for building 32bit software: mkdir -p $PKG/usr/bin/32 install -o root -m755 $CWD/gccwrapper $PKG/usr/bin/32/gcc +# Add the 'gfortran' wrapper script to be used for building 32bit software: +mkdir -p $PKG/usr/bin/32 +install -o root -m755 $CWD/gfortranwrapper $PKG/usr/bin/32/gfortran # Add symlinks for cc and g++ stubs: ( cd $PKG/usr/bin/32; @@ -53,6 +54,14 @@ install -o root -m755 $CWD/gccwrapper $PKG/usr/bin/32/gcc ln -s gcc cc; ) +# Add symlinks for fortran stubs: +( cd $PKG/usr/bin/32; + ln -s gfortran f77; + ln -s gfortran f95; + ln -s gfortran g77; + ln -s gfortran g95; + ln -s gfortran fortran; +) # Add the two scripts that will facilitate converting 32bit Slackware # packages to a format that is suitable to be installed on 64bit Slackware. @@ -61,7 +70,6 @@ mkdir -p $PKG/usr/sbin install -m755 -o root $CWD/convertpkg-compat32 $PKG/usr/sbin/convertpkg-compat32 install -m755 -o root $CWD/massconvert32.sh $PKG/usr/sbin/massconvert32.sh - # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION # Much of this README is from the Slamd64 file: @@ -70,12 +78,10 @@ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README # Add this script: cat $0 > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - # Add a package description: mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc - # Build the package: cd $PKG /sbin/makepkg -l y -c n $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz |