diff options
Diffstat (limited to 'perl/perl-net-dbus/perl-net-dbus.SlackBuild')
-rw-r--r-- | perl/perl-net-dbus/perl-net-dbus.SlackBuild | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/perl/perl-net-dbus/perl-net-dbus.SlackBuild b/perl/perl-net-dbus/perl-net-dbus.SlackBuild index 56e9f4cad224c..4c30f95d9b304 100644 --- a/perl/perl-net-dbus/perl-net-dbus.SlackBuild +++ b/perl/perl-net-dbus/perl-net-dbus.SlackBuild @@ -1,11 +1,12 @@ #!/bin/sh - -# Slackware build script for perl-net-dbus - +# +# Slackware build script for perl-net-dbus. +# # Copyright 2011-2012 Binh Nguyen <binhvng@gmail.com> -# All rights reserved. +# Adopted 2014-2017 Glenn Becker <glenn.becker@gmail.com> +# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. # -# Adopted 2014 Glenn Becker <glenn.becker@gmail.com> +# All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -26,14 +27,12 @@ PRGNAM=perl-net-dbus VERSION=${VERSION:-1.1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -SRCNAM=Net-DBus - if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -44,8 +43,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -58,7 +57,9 @@ else LIBDIRSUFFIX="" fi -set -eu +SRCNAM="Net-DBus" + +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT |