aboutsummaryrefslogtreecommitdiff
path: root/desktop/grim
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-05-16 17:32:41 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-21 08:25:04 +0700
commit723fb540c51eb2ebac609e97da8481270766f7ed (patch)
tree0dc3f4226cee6c707617140625a5ce8ae8815acc /desktop/grim
parente4f4264aefbdffbfcf87344dbd80468f486fdfc3 (diff)
desktop/grim: Fix build on 32bit.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/grim')
-rw-r--r--desktop/grim/89e02e663fabc534b7e7039514f60a8c5d70070d.patch25
-rw-r--r--desktop/grim/grim.SlackBuild9
2 files changed, 30 insertions, 4 deletions
diff --git a/desktop/grim/89e02e663fabc534b7e7039514f60a8c5d70070d.patch b/desktop/grim/89e02e663fabc534b7e7039514f60a8c5d70070d.patch
new file mode 100644
index 0000000000000..8f63dd009ed89
--- /dev/null
+++ b/desktop/grim/89e02e663fabc534b7e7039514f60a8c5d70070d.patch
@@ -0,0 +1,25 @@
+From 89e02e663fabc534b7e7039514f60a8c5d70070d Mon Sep 17 00:00:00 2001
+From: Simon Ser <contact@emersion.fr>
+Date: Wed, 9 Feb 2022 01:24:11 +0100
+Subject: [PATCH] write_jpg: fix printf format specifier
+
+---
+ write_jpg.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/write_jpg.c b/write_jpg.c
+index 4476f5f..0cb57d3 100644
+--- a/write_jpg.c
++++ b/write_jpg.c
+@@ -54,7 +54,7 @@ int write_to_jpeg_stream(pixman_image_t *image, FILE *stream, int quality) {
+ size_t written = fwrite(data, 1, len, stream);
+ if (written < len) {
+ free(data);
+- fprintf(stderr, "Failed to write jpg; only %zu of %zu bytes written\n",
++ fprintf(stderr, "Failed to write jpg; only %zu of %lu bytes written\n",
+ written, len);
+ return -1;
+ }
+--
+2.34.2
+
diff --git a/desktop/grim/grim.SlackBuild b/desktop/grim/grim.SlackBuild
index ac0c0a3095286..f05deb2bb79ff 100644
--- a/desktop/grim/grim.SlackBuild
+++ b/desktop/grim/grim.SlackBuild
@@ -26,16 +26,15 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=grim
SRCNAM=grim-v1.4.0
-VERSION=${VERSION:-1.4.0}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+VERSION=${VERSION:-1.4.0}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
-
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -71,6 +70,8 @@ cd $TMP
rm -rf $SRCNAM
tar xvf $CWD/$SRCNAM.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $SRCNAM
+# https://git.sr.ht/~emersion/grim/commit/89e02e663fabc534b7e7039514f60a8c5d70070d
+patch -p1 -i $CWD/89e02e663fabc534b7e7039514f60a8c5d70070d.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \