misc/ardesia: Patch to build on -current.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2021-08-14 15:39:08 +12:00 committed by Willy Sudiarto Raharjo
parent a8d39ca8f8
commit c613b72d67
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,22 @@
--- a/src/bar.c
+++ b/src/bar.c
@@ -26,6 +26,8 @@
#include <utils.h>
#include <bar.h>
+GtkBuilder *bar_gtk_builder = NULL;
+
/*
* Calculate the better position where put the bar.
*/
--- a/src/utils.h
+++ b/src/utils.h
@@ -62,7 +62,7 @@
/* The gtk builder object of the bar window */
-GtkBuilder *bar_gtk_builder;
+extern GtkBuilder *bar_gtk_builder;
#define PROGRAM_NAME "Ardesia"

View File

@ -56,6 +56,8 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
# thanks arch linux maintainers
patch -p1 < $CWD/010-ardesia-gcc10-fix.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \

View File

@ -1,7 +1,7 @@
PRGNAM="ardesia"
VERSION="1.1"
HOMEPAGE="https://github.com/gfreeau/ardesia"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/ardesia-1.1.tar.gz"
DOWNLOAD="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ardesia/ardesia-1.1.tar.gz"
MD5SUM="b0abe145ce4ade50ab897ec658d2d664"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""