From e5bdd2b120fe64ed833090631babc46d5ccb1534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 4 Sep 2020 08:40:03 +0700 Subject: [PATCH] dmenu: update to 5.0. --- srcpkgs/dmenu/files/fuzzymatch.patch | 6 +----- srcpkgs/dmenu/template | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/srcpkgs/dmenu/files/fuzzymatch.patch b/srcpkgs/dmenu/files/fuzzymatch.patch index 20f7881948..b825d2dffb 100644 --- a/srcpkgs/dmenu/files/fuzzymatch.patch +++ b/srcpkgs/dmenu/files/fuzzymatch.patch @@ -1,8 +1,4 @@ - dmenu.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- - 1 file changed, 85 insertions(+), 4 deletions(-) - diff --git a/dmenu.c b/dmenu.c -index 6b8f51b..4221233 100644 --- a/dmenu.c +++ b/dmenu.c @@ -32,6 +32,7 @@ struct item { @@ -127,7 +123,7 @@ index 6b8f51b..4221233 100644 break; } -@@ -648,7 +729,7 @@ setup(void) +@@ -653,7 +734,7 @@ setup(void) } promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0; inputw = MIN(inputw, mw/3); diff --git a/srcpkgs/dmenu/template b/srcpkgs/dmenu/template index 045b64e163..7baa3e31b8 100644 --- a/srcpkgs/dmenu/template +++ b/srcpkgs/dmenu/template @@ -1,6 +1,6 @@ # Template file for 'dmenu' pkgname=dmenu -version=4.9 +version=5.0 revision=1 makedepends="libXinerama-devel libXft-devel freetype-devel" short_desc="Generic menu for X" @@ -8,15 +8,15 @@ maintainer="Lugubris " license="MIT" homepage="https://tools.suckless.org/dmenu/" distfiles="https://dl.suckless.org/tools/${pkgname}-${version}.tar.gz" -checksum=b3971f4f354476a37b2afb498693649009b201550b0c7c88e866af8132b64945 +checksum=fe18e142c4dbcf71ba5757dbbdea93b1c67d58fc206fc116664f4336deef6ed3 build_options="fuzzymatch" desc_option_fuzzymatch="Enable Fuzzymatch support" -post_extract() { +post_patch() { if [ "$build_option_fuzzymatch" ]; then msg_normal "Applying fuzzymatch patches" - patch -p1 < "${FILESDIR}/fuzzymatch.patch" + patch -slNp1 < "${FILESDIR}/fuzzymatch.patch" fi sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ -e '/LDFLAGS/{s/-s//;s/=/+=/}' config.mk