aboutsummaryrefslogtreecommitdiff
path: root/network/copy/copy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/copy/copy.SlackBuild')
-rw-r--r--network/copy/copy.SlackBuild33
1 files changed, 23 insertions, 10 deletions
diff --git a/network/copy/copy.SlackBuild b/network/copy/copy.SlackBuild
index 9246f8f5cb6ab..03c0e2e08a809 100644
--- a/network/copy/copy.SlackBuild
+++ b/network/copy/copy.SlackBuild
@@ -1,4 +1,5 @@
#!/bin/sh
+
# Slackware build script for Copy
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
@@ -19,27 +20,32 @@
# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see
-# <http://www.gnu.org/licenses/>.
+# <https://www.gnu.org/licenses/>.
PRGNAM=copy
-SRCNAM=copy_agent
+SRCNAM=Copy
DSKNAM=CopyAgent
-VERSION=${VERSION:-3.2.01.0481}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.2.02.0496}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ] || [ -z "$SRCARCH" ]; then
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ -z "$SRCARCH" ]; then
case "$( uname -m )" in
i?86)
- ARCH=i486;
SRCARCH=x86;
;;
arm*)
- ARCH=arm;
SRCARCH=armv6h;
;;
*)
- ARCH=$( uname -m );
SRCARCH=$( uname -m );
;;
esac
@@ -53,10 +59,17 @@ OUTPUT=${OUTPUT:-/tmp}
TARBALL=$SRCNAM-$VERSION.tgz
TARBALL_ROOT=$PRGNAM
-# Set LIBDIRSUFFIX and TARBALL.
-if [ "$ARCH" = "x86_64" ]; then
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi