From 04134aa9dd3430b7208856c46c9fcf3688a31560 Mon Sep 17 00:00:00 2001 From: Melvin Mawhin Date: Sat, 26 Sep 2020 03:55:22 +0100 Subject: desktop/i3-gaps: Updated for version 4.18.2. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- desktop/i3-gaps/i3-gaps.SlackBuild | 3 ++- desktop/i3-gaps/i3-gaps.info | 6 +++--- desktop/i3-gaps/i3-gaps.patch | 22 ++++++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 desktop/i3-gaps/i3-gaps.patch 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 + #include + +-#ifndef HAVE_strndup ++#ifndef HAVE_STRNDUP + /* + * Taken from FreeBSD + * Returns a pointer to a new string which is a duplicate of the -- cgit v1.2.3