summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-08-14 15:39:08 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-14 21:17:57 +0700
commitc613b72d67f6c97514785965819fa5dea1a72eb1 (patch)
tree9dd3b1f09275fb76434796be610797a8d9c3c8b5 /misc
parenta8d39ca8f8cf33417e087f2d3cb14f92564c6060 (diff)
downloadslackbuilds-c613b72d67f6c97514785965819fa5dea1a72eb1.tar.gz
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>
Diffstat (limited to 'misc')
-rw-r--r--misc/ardesia/010-ardesia-gcc10-fix.patch22
-rw-r--r--misc/ardesia/ardesia.SlackBuild2
-rw-r--r--misc/ardesia/ardesia.info2
3 files changed, 25 insertions, 1 deletions
diff --git a/misc/ardesia/010-ardesia-gcc10-fix.patch b/misc/ardesia/010-ardesia-gcc10-fix.patch
new file mode 100644
index 0000000000..c422990195
--- /dev/null
+++ b/misc/ardesia/010-ardesia-gcc10-fix.patch
@@ -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"
diff --git a/misc/ardesia/ardesia.SlackBuild b/misc/ardesia/ardesia.SlackBuild
index 885b3de3d8..d7df0640c1 100644
--- a/misc/ardesia/ardesia.SlackBuild
+++ b/misc/ardesia/ardesia.SlackBuild
@@ -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 \
diff --git a/misc/ardesia/ardesia.info b/misc/ardesia/ardesia.info
index def32515e2..a3d16b1ecb 100644
--- a/misc/ardesia/ardesia.info
+++ b/misc/ardesia/ardesia.info
@@ -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=""