summaryrefslogtreecommitdiff
path: root/desktop/i3-gaps
diff options
context:
space:
mode:
authorMelvin Mawhin <mmawhin@hotmail.com>2020-09-26 03:55:22 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-09-26 16:10:53 +0700
commit04134aa9dd3430b7208856c46c9fcf3688a31560 (patch)
treeeb7260ed8cfe04668d1c55aa21c622f3b1fd54af /desktop/i3-gaps
parent51f7f504c1801e36330ddbc4e96d8eecc780b07e (diff)
downloadslackbuilds-04134aa9dd3430b7208856c46c9fcf3688a31560.tar.gz
desktop/i3-gaps: Updated for version 4.18.2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/i3-gaps')
-rw-r--r--desktop/i3-gaps/i3-gaps.SlackBuild3
-rw-r--r--desktop/i3-gaps/i3-gaps.info6
-rw-r--r--desktop/i3-gaps/i3-gaps.patch22
3 files changed, 27 insertions, 4 deletions
diff --git a/desktop/i3-gaps/i3-gaps.SlackBuild b/desktop/i3-gaps/i3-gaps.SlackBuild
index 5a3d059fa4..0c00cbcc05 100644
--- a/desktop/i3-gaps/i3-gaps.SlackBuild
+++ b/desktop/i3-gaps/i3-gaps.SlackBuild
@@ -27,7 +27,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=i3-gaps
-VERSION=${VERSION:-4.17.1}
+VERSION=${VERSION:-4.18.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,6 +65,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/i3-$VERSION.tar.gz
+patch -p0 < $CWD/i3-gaps.patch
cd i3-$VERSION
chown -R root:root .
find -L . \
diff --git a/desktop/i3-gaps/i3-gaps.info b/desktop/i3-gaps/i3-gaps.info
index 792b5bce7d..9e4e568ffb 100644
--- a/desktop/i3-gaps/i3-gaps.info
+++ b/desktop/i3-gaps/i3-gaps.info
@@ -1,8 +1,8 @@
PRGNAM="i3-gaps"
-VERSION="4.17.1"
+VERSION="4.18.2"
HOMEPAGE="https://github.com/Airblader/i3"
-DOWNLOAD="https://github.com/Airblader/i3/archive/4.17.1/i3-4.17.1.tar.gz"
-MD5SUM="d58092b0c36e49f3a0bccb873dd8a2a3"
+DOWNLOAD="https://github.com/Airblader/i3/archive/4.18.2/i3-4.18.2.tar.gz"
+MD5SUM="464c8b0ad765cbf9047445b93a1859eb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="dmenu libev libxkbcommon xcb-util-xrm yajl perl-JSON-XS perl-AnyEvent"
diff --git a/desktop/i3-gaps/i3-gaps.patch b/desktop/i3-gaps/i3-gaps.patch
new file mode 100644
index 0000000000..932e8a4d4a
--- /dev/null
+++ b/desktop/i3-gaps/i3-gaps.patch
@@ -0,0 +1,22 @@
+--- i3-4.18.2/include/libi3.h 2020-07-26 10:35:49.000000000 +0200
++++ i3-4.18.2/include/libi3.h.new 2020-09-21 09:53:05.502446300 +0200
+@@ -341,7 +341,7 @@
+ */
+ uint32_t get_colorpixel(const char *hex) __attribute__((const));
+
+-#ifndef HAVE_strndup
++#ifndef HAVE_STRNDUP
+ /**
+ * Taken from FreeBSD
+ * Returns a pointer to a new string which is a duplicate of the
+--- i3-4.18.2/libi3/strndup.c 2020-07-26 10:35:49.000000000 +0200
++++ i3-4.18.2/libi3/strndup.c.new 2020-09-21 09:51:37.792446300 +0200
+@@ -10,7 +10,7 @@
+ #include <sys/types.h>
+ #include <string.h>
+
+-#ifndef HAVE_strndup
++#ifndef HAVE_STRNDUP
+ /*
+ * Taken from FreeBSD
+ * Returns a pointer to a new string which is a duplicate of the