diff options
Diffstat (limited to 'source/d/m4/m4.SlackBuild')
-rwxr-xr-x | source/d/m4/m4.SlackBuild | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/source/d/m4/m4.SlackBuild b/source/d/m4/m4.SlackBuild index 06c73757e..f74e022fd 100755 --- a/source/d/m4/m4.SlackBuild +++ b/source/d/m4/m4.SlackBuild @@ -20,11 +20,21 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=1.4.13 -ARCH=${ARCH:-x86_64} -NUMJOBS=${NUMJOBS:-" -j7 "} +VERSION=1.4.14 BUILD=${BUILD:-1} +NUMJOBS=${NUMJOBS:-" -j7 "} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-m4 @@ -38,6 +48,9 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG @@ -97,12 +110,8 @@ fi #cat src/m4 > $PKG/usr/bin/m4 #chmod 755 $PKG/usr/bin/* -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null mkdir -p $PKG/usr/doc/m4-$VERSION cp -a \ @@ -110,7 +119,7 @@ cp -a \ $PKG/usr/doc/m4-$VERSION head -n 357 ChangeLog > $PKG/usr/doc/m4-$VERSION/ChangeLog touch -r ChangeLog $PKG/usr/doc/m4-$VERSION/ChangeLog -chmod 644 $PKG/usr/doc/m4-$VERSION/COPYING* +chmod 0644 $PKG/usr/doc/m4-$VERSION/COPYING* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |