diff options
author | Vlad Glagolev | 2022-07-17 22:08:25 +0000 |
---|---|---|
committer | Vlad Glagolev | 2022-07-17 22:08:25 +0000 |
commit | 62e3aa1fcbf19ed5950e99c39f7f8978db10bd33 (patch) | |
tree | cd88637d2bc0f2f3beaa3791774a10c0df3a1486 /wm-addons | |
parent | 6ab233e6e49ecd4fad7d032db95f6612486f6875 (diff) |
xlsw: new spell, list the X window tree contents
Diffstat (limited to 'wm-addons')
-rwxr-xr-x | wm-addons/xlsw/BUILD | 1 | ||||
-rwxr-xr-x | wm-addons/xlsw/DEPENDS | 1 | ||||
-rwxr-xr-x | wm-addons/xlsw/DETAILS | 15 | ||||
-rw-r--r-- | wm-addons/xlsw/HISTORY | 3 | ||||
-rwxr-xr-x | wm-addons/xlsw/INSTALL | 1 | ||||
-rwxr-xr-x | wm-addons/xlsw/PRE_BUILD | 4 | ||||
-rw-r--r-- | wm-addons/xlsw/type.patch | 22 |
7 files changed, 47 insertions, 0 deletions
diff --git a/wm-addons/xlsw/BUILD b/wm-addons/xlsw/BUILD new file mode 100755 index 0000000000..8f58e6df93 --- /dev/null +++ b/wm-addons/xlsw/BUILD @@ -0,0 +1 @@ +make diff --git a/wm-addons/xlsw/DEPENDS b/wm-addons/xlsw/DEPENDS new file mode 100755 index 0000000000..3b59cabe13 --- /dev/null +++ b/wm-addons/xlsw/DEPENDS @@ -0,0 +1 @@ +depends libxcb diff --git a/wm-addons/xlsw/DETAILS b/wm-addons/xlsw/DETAILS new file mode 100755 index 0000000000..9a97e25577 --- /dev/null +++ b/wm-addons/xlsw/DETAILS @@ -0,0 +1,15 @@ + SPELL=xlsw + VERSION=0.2.3 + SOURCE=${SPELL}-${VERSION}.tar.gz + SOURCE_URL[0]=https://github.com/baskerville/${SPELL}/archive/${VERSION}.tar.gz + SOURCE_HASH=sha512:f9976df9715b091ed82a99252c390196edbf306852ffa20a12ba63c35efdabf63593a3fad7c672a6ed0e9f447ff6c9b076f73d7013bf4c8c454481f117d8925f +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + DOC_DIRS="" + WEB_SITE=https://github.com/baskerville/xlsw + LICENSE[0]=UNLICENSE + ENTERED=20220717 + SHORT="list the X window tree contents" +cat << EOF +xlsw outputs the list of the children window informations for the given window +identifiers (use the root window if none are given). +EOF diff --git a/wm-addons/xlsw/HISTORY b/wm-addons/xlsw/HISTORY new file mode 100644 index 0000000000..75ca4f2c1e --- /dev/null +++ b/wm-addons/xlsw/HISTORY @@ -0,0 +1,3 @@ +2022-07-17 Vlad Glagolev <stealth@sourcemage.org> + * DEPENDS, DETAILS, {PRE_,}BUILD, INSTALL, type.patch: created + spell, version 0.2.3 diff --git a/wm-addons/xlsw/INSTALL b/wm-addons/xlsw/INSTALL new file mode 100755 index 0000000000..e72b41d353 --- /dev/null +++ b/wm-addons/xlsw/INSTALL @@ -0,0 +1 @@ +make PREFIX="${INSTALL_ROOT}/usr" install diff --git a/wm-addons/xlsw/PRE_BUILD b/wm-addons/xlsw/PRE_BUILD new file mode 100755 index 0000000000..83611291a5 --- /dev/null +++ b/wm-addons/xlsw/PRE_BUILD @@ -0,0 +1,4 @@ +default_pre_build && +cd "${SOURCE_DIRECTORY}" && + +patch -p1 < "${SPELL_DIRECTORY}/type.patch" diff --git a/wm-addons/xlsw/type.patch b/wm-addons/xlsw/type.patch new file mode 100644 index 0000000000..d5ec0ed6a8 --- /dev/null +++ b/wm-addons/xlsw/type.patch @@ -0,0 +1,22 @@ +From 41e5323c895f613a62b9e5b2ab1b7e85ddd793ec Mon Sep 17 00:00:00 2001 +From: Bastien Dejean <nihilhill@gmail.com> +Date: Tue, 12 Apr 2016 10:43:08 +0200 +Subject: [PATCH] Use the proper type for the return value of getopt + +--- + xlsw.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xlsw.c b/xlsw.c +index 174b82c..cb90133 100644 +--- a/xlsw.c ++++ b/xlsw.c +@@ -13,7 +13,7 @@ + int main(int argc, char *argv[]) + { + recursive = false; +- char opt; ++ int opt; + + while ((opt = getopt(argc, argv, "hvr")) != -1) { + switch (opt) { |