diff options
author | Vlad Glagolev | 2022-07-30 02:30:57 +0000 |
---|---|---|
committer | Vlad Glagolev | 2022-07-30 02:31:35 +0000 |
commit | cccd7b4b42bd00087c4c37da31f2b1c8904cfddf (patch) | |
tree | cc621e3f9a4ab06b2082374f3f7a89464ae1048b /wm-addons | |
parent | e3b772825f47bbb36c481780264190a0d964bae8 (diff) |
xmenu: new spell, X menu utility
Diffstat (limited to 'wm-addons')
-rwxr-xr-x | wm-addons/xmenu/BUILD | 1 | ||||
-rwxr-xr-x | wm-addons/xmenu/DEPENDS | 5 | ||||
-rwxr-xr-x | wm-addons/xmenu/DETAILS | 15 | ||||
-rw-r--r-- | wm-addons/xmenu/HISTORY | 3 | ||||
-rwxr-xr-x | wm-addons/xmenu/INSTALL | 1 | ||||
-rwxr-xr-x | wm-addons/xmenu/PRE_BUILD | 4 | ||||
-rw-r--r-- | wm-addons/xmenu/int.patch | 11 |
7 files changed, 40 insertions, 0 deletions
diff --git a/wm-addons/xmenu/BUILD b/wm-addons/xmenu/BUILD new file mode 100755 index 0000000000..dd7cce32b9 --- /dev/null +++ b/wm-addons/xmenu/BUILD @@ -0,0 +1 @@ +make LOCALINC="${INSTALL_ROOT}/usr/include" LOCALLIB="${INSTALL_ROOT}/lib" diff --git a/wm-addons/xmenu/DEPENDS b/wm-addons/xmenu/DEPENDS new file mode 100755 index 0000000000..f7871bbc06 --- /dev/null +++ b/wm-addons/xmenu/DEPENDS @@ -0,0 +1,5 @@ +depends imlib2 && +depends libx11 && +depends libxft && +depends libxinerama && +depends fontconfig diff --git a/wm-addons/xmenu/DETAILS b/wm-addons/xmenu/DETAILS new file mode 100755 index 0000000000..65ba363f5c --- /dev/null +++ b/wm-addons/xmenu/DETAILS @@ -0,0 +1,15 @@ + SPELL=xmenu + VERSION=4.5.5 + SOURCE=${SPELL}-${VERSION}.tar.gz + SOURCE_URL[0]=https://github.com/phillbush/${SPELL}/archive/v${VERSION}.tar.gz + SOURCE_HASH=sha512:fb5f387e19991c790a0fcd54bcc750d7c2e5d42e6cbaed9183807d030da42765bbad2990e40476d73074ca02d5bcc88ba4379340bc5a01a30ae858288ed38c56 +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + WEB_SITE=https://github.com/phillbush/xmenu + LICENSE[0]=MIT + ENTERED=20220729 + SHORT="X menu utility" +cat << EOF +XMenu is a menu utility for X. XMenu receives a menu specification in stdin, +shows a menu for the user to select one of the options, and outputs the option +selected to stdout. XMenu can be controlled both via mouse and via keyboard. +EOF diff --git a/wm-addons/xmenu/HISTORY b/wm-addons/xmenu/HISTORY new file mode 100644 index 0000000000..fe3043bca0 --- /dev/null +++ b/wm-addons/xmenu/HISTORY @@ -0,0 +1,3 @@ +2022-07-29 Vlad Glagolev <stealth@sourcemage.org> + * DEPENDS, DETAILS, {PRE_,}BUILD, INSTALL, int.patch: created spell, + version 4.5.5 diff --git a/wm-addons/xmenu/INSTALL b/wm-addons/xmenu/INSTALL new file mode 100755 index 0000000000..e72b41d353 --- /dev/null +++ b/wm-addons/xmenu/INSTALL @@ -0,0 +1 @@ +make PREFIX="${INSTALL_ROOT}/usr" install diff --git a/wm-addons/xmenu/PRE_BUILD b/wm-addons/xmenu/PRE_BUILD new file mode 100755 index 0000000000..e3bae98c2d --- /dev/null +++ b/wm-addons/xmenu/PRE_BUILD @@ -0,0 +1,4 @@ +default_pre_build && +cd "${SOURCE_DIRECTORY}" && + +patch -p0 < "${SPELL_DIRECTORY}/int.patch" diff --git a/wm-addons/xmenu/int.patch b/wm-addons/xmenu/int.patch new file mode 100644 index 0000000000..83d786d700 --- /dev/null +++ b/wm-addons/xmenu/int.patch @@ -0,0 +1,11 @@ +--- xmenu.c.orig 2021-04-11 07:03:29.000000000 -0700 ++++ xmenu.c 2022-07-29 19:26:12.652748944 -0700 +@@ -1390,7 +1390,7 @@ + case XK_1: case XK_2: case XK_3: case XK_4: case XK_5: case XK_6: case XK_7: case XK_8: case XK_9: + item = itemcycle(currmenu, ITEMFIRST); + lastitem = itemcycle(currmenu, ITEMLAST); +- for (int i = ksym - XK_1; i > 0 && item != lastitem; i--) { ++ for (i = ksym - XK_1; i > 0 && item != lastitem; i--) { + currmenu->selected = item; + item = itemcycle(currmenu, ITEMNEXT); + } |