summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-09-15 18:32:55 +0000
committer Eric Hameleers <alien@slackware.com>2019-09-15 18:32:55 +0000
commit91f368e17852874607db332d7196523d73c263fe (patch)
treeaf2bcfeb8d5334c009d768fdc4e66a10b6ce490c
parent81a9ccbed9ee93616ba30abaaebc5c23089f67e7 (diff)
downloadasb-91f368e17852874607db332d7196523d73c263fe.tar.gz
asb-91f368e17852874607db332d7196523d73c263fe.tar.xz
qrencode: update to 4.0.2
-rwxr-xr-xqrencode/build/qrencode.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/qrencode/build/qrencode.SlackBuild b/qrencode/build/qrencode.SlackBuild
index ce5eea1c..e19b2e53 100755
--- a/qrencode/build/qrencode.SlackBuild
+++ b/qrencode/build/qrencode.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2014, 2017 Eric Hameleers, Eindhoven, NL
+# Copyright 2014, 2017, 2019 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -35,6 +35,8 @@
# * Initial build.
# 3.4.4-1: 28/jan/2017 by Eric Hameleers <alien@slackware.com>
# * Update.
+# 4.0.2-1: 15/sep/2019 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh qrencode.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -43,9 +45,9 @@
# -----------------------------------------------------------------------------
PRGNAM=qrencode
-VERSION=${VERSION:-3.4.4}
+VERSION=${VERSION:-4.0.2}
BUILD=${BUILD:-1}
-NUMJOBS=${NUMJOBS:" -j4 "}
+NUMJOBS=${NUMJOBS:" -j$(nproc) "}
TAG=${TAG:-alien}
DOCS="COPYING ChangeLog NEWS README TODO"
@@ -69,7 +71,7 @@ SRCURL="http://fukuchi.org/works/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz"
MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
case "$MARCH" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
armv7hl) export ARCH=$MARCH ;;
armv6hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;;
@@ -79,7 +81,7 @@ if [ -z "$ARCH" ]; then
fi
case "$ARCH" in
- i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ i?86) SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686"
SLKLDFLAGS=""; LIBDIRSUFFIX=""
;;
x86_64) SLKCFLAGS="-O2 -fPIC"