summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenard Spencer <lspencer31@cfl.rr.com>2018-09-30 16:41:05 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-10-06 07:25:14 +0700
commitab7b2eb2220bc948bd3bc59827306c6f99042a86 (patch)
treef11411e53966469d91c1e294720130829bf4be6c
parent43d83f23beedebabfeddbade70ffab79f2823388 (diff)
downloadslackbuilds-ab7b2eb2220bc948bd3bc59827306c6f99042a86.tar.gz
graphics/qrencode: Updated for version 4.0.2 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--graphics/qrencode/README6
-rw-r--r--graphics/qrencode/qrencode.SlackBuild14
-rw-r--r--graphics/qrencode/qrencode.info10
3 files changed, 17 insertions, 13 deletions
diff --git a/graphics/qrencode/README b/graphics/qrencode/README
index 756110060b..5b095d47c3 100644
--- a/graphics/qrencode/README
+++ b/graphics/qrencode/README
@@ -1,4 +1,4 @@
-Libqrencode is a C library for encoding data in a QR Code symbol, a
-kind of 2D symbology that can be scanned by handy terminals such as a
-mobile phone with CCD. The capacity of QR Code is up to 7000 digits
+Libqrencode is a C library for encoding data in a QR Code symbol, a
+kind of 2D symbology that can be scanned by handy terminals such as a
+mobile phone with CCD. The capacity of QR Code is up to 7000 digits
or 4000 characters, and is highly robust.
diff --git a/graphics/qrencode/qrencode.SlackBuild b/graphics/qrencode/qrencode.SlackBuild
index 8c05c6f37c..58272c93eb 100644
--- a/graphics/qrencode/qrencode.SlackBuild
+++ b/graphics/qrencode/qrencode.SlackBuild
@@ -3,6 +3,7 @@
# SlackBuild Script for qrencode
# Copyright 2012 Matthew "mfillpot" Fillpot
+# Revised 2018 Lenard Spencer
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=qrencode
-VERSION=${VERSION:-3.4.2}
+VERSION=${VERSION:-4.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +41,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"
@@ -60,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -83,6 +84,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# Do not ship .la files
+find $PKG/usr/lib${LIBDIRSUFFIX} -name *.la -delete || true
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/graphics/qrencode/qrencode.info b/graphics/qrencode/qrencode.info
index 0efba2e3f2..120189ba35 100644
--- a/graphics/qrencode/qrencode.info
+++ b/graphics/qrencode/qrencode.info
@@ -1,10 +1,10 @@
PRGNAM="qrencode"
-VERSION="3.4.2"
+VERSION="4.0.2"
HOMEPAGE="https://fukuchi.org/works/qrencode/"
-DOWNLOAD="https://fukuchi.org/works/qrencode/qrencode-3.4.2.tar.gz"
-MD5SUM="f6eed222ddcaa32d9f79ad9078b5816d"
+DOWNLOAD="https://fukuchi.org/works/qrencode/qrencode-4.0.2.tar.bz2"
+MD5SUM="3eb64357f6fbdb68c27cb2e44e97280a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Matthew Fillpot"
-EMAIL="mfilpot@gmail.com"
+MAINTAINER="Lenard Spencer"
+EMAIL="lspencer31@cfl.rr.com"