summaryrefslogtreecommitdiff
path: root/system/conky/conky.SlackBuild
diff options
context:
space:
mode:
authorM.Dinslage <daedra1980@gmail.com>2017-06-06 22:36:55 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-10 10:47:37 +0700
commitb24c8432844dfc41c1236dab10194c642b788c8c (patch)
treeabf0ef8a5711801383cfde4ccf01f42bfabd02d1 /system/conky/conky.SlackBuild
parent3653916b7edb433883e8ad8c941e33cf6a3c9aef (diff)
downloadslackbuilds-b24c8432844dfc41c1236dab10194c642b788c8c.tar.gz
system/conky: Fixed building with gcc-7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/conky/conky.SlackBuild')
-rw-r--r--system/conky/conky.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/conky/conky.SlackBuild b/system/conky/conky.SlackBuild
index 94b23e0261..f0ecaf36c5 100644
--- a/system/conky/conky.SlackBuild
+++ b/system/conky/conky.SlackBuild
@@ -78,7 +78,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/v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -90,6 +90,9 @@ find -L . \
# fix MANDIR
sed -i 's,share/man/man1,man/man1,g' CMakeLists.txt
+# fix compile error with gcc-7.*
+sed -i "31i #include <functional>" src/luamm.hh
+
mkdir -p build
cd build
cmake \