graphics/simple-scan: Updated for version 42.1.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Johannes Schoepfer 2022-05-17 14:59:22 +01:00 committed by Willy Sudiarto Raharjo
parent 1500ec900d
commit a9b1c29f11
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 9 additions and 50 deletions

View file

@ -3,4 +3,4 @@ It allows you to capture images using image scanners
(e.g. flatbed scanners) that have suitable SANE drivers installed.
Optional dependencies, detected automatically at compiletime:
colord, packagekit
colord

View file

@ -1,38 +0,0 @@
From 47d3532459863e3b0bc1c7fd3a200f612863c814 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Sat, 14 Sep 2019 20:03:47 +0200
Subject: [PATCH] libwepmix: Fix use of possibly unassigned local variable
'data'
---
src/libwebpmux.vapi | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/libwebpmux.vapi b/src/libwebpmux.vapi
index f2461a2..42d2886 100644
--- a/src/libwebpmux.vapi
+++ b/src/libwebpmux.vapi
@@ -61,9 +61,7 @@ namespace WebP
[CCode (cname = "vala_set_image")]
public MuxError set_image (uint8[] bitstream, bool copy_data)
{
- Data data;
- data.bytes = bitstream;
- data.size = bitstream.length;
+ Data data = { bitstream, bitstream.length };
return _set_image (data, copy_data);
}
@@ -89,9 +87,7 @@ namespace WebP
public MuxError set_chunk (string fourcc, uint8[] chunk_data, bool copy_data)
requires (fourcc.length == 4)
{
- Data data;
- data.bytes = chunk_data;
- data.size = chunk_data.length;
+ Data data = { chunk_data ,chunk_data.length };
return _set_chunk ((uchar[]) fourcc, data, copy_data);
}
--
2.22.0

View file

@ -2,8 +2,8 @@
# Slackware build script for simple-scan
# Copyright 2010-2017, Nishant Limbachia, Hoffman Estates, IL, USA
# Copyright 2021 Johannes Schoepfer, Germany
# Copyright 2010 - 2017 Nishant Limbachia, Hoffman Estates, IL, USA
# Copyright 2021 - 2022 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="simple-scan"
VERSION=${VERSION:-3.38.5}
VERSION=${VERSION:-42.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0

View file

@ -1,10 +1,10 @@
PRGNAM="simple-scan"
VERSION="3.38.5"
VERSION="42.1"
HOMEPAGE="https://gitlab.gnome.org/GNOME/simple-scan"
DOWNLOAD="https://download.gnome.org/sources/simple-scan/3.38/simple-scan-3.38.5.tar.xz"
MD5SUM="9988530faaf97ef08c6d29b64846ba6b"
DOWNLOAD="https://download.gnome.org/sources/simple-scan/42/simple-scan-42.1.tar.xz"
MD5SUM="bd5c3ad8559a13db93b78d0b01091eb0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libgusb"
REQUIRES="libgusb libhandy"
MAINTAINER="Johannes Schoepfer"
EMAIL="slackbuilds@schoepfer.info"

View file

@ -12,7 +12,7 @@ simple-scan: simple-scan is a document scanning application.
simple-scan: It allows you to capture images using image scanners
simple-scan: (e.g. flatbed scanners) that have suitable SANE drivers installed.
simple-scan:
simple-scan: Homepage: https://gitlab.gnome.org/GNOME/simple-scan
simple-scan: https://gitlab.gnome.org/GNOME/simple-scan
simple-scan:
simple-scan:
simple-scan: