Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (9c5f265385560322a9599d5b4563ae60bb3e9435)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (9c5f265385560322a9599d5b4563ae60bb3e9435)
  • Date: Mon, 18 Jul 2022 01:08:30 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 1 +
wm-addons/sres/BUILD | 1 +
wm-addons/sres/DEPENDS | 1 +
wm-addons/sres/DETAILS | 14 ++++++++++++++
wm-addons/sres/HISTORY | 3 +++
wm-addons/sres/INSTALL | 1 +
wm-addons/sres/PRE_BUILD | 4 ++++
wm-addons/sres/type.patch | 22 ++++++++++++++++++++++
8 files changed, 47 insertions(+)

New commits:
commit 9c5f265385560322a9599d5b4563ae60bb3e9435
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

sres: new spell, print the current screen resolution on stdout

diff --git a/ChangeLog b/ChangeLog
index 7eb2815..5348d09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@

2022-07-17 Vlad Glagolev <stealth AT sourcemage.org>
* wm-addons/xlsw: new spell, list the X window tree contents
+ * wm-addons/sres: new spell, print the current screen resolution on
stdout

2022-07-13 Vlad Glagolev <stealth AT sourcemage.org>
* wm-addons/xqp: new spell, X Query pointer
diff --git a/wm-addons/sres/BUILD b/wm-addons/sres/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/wm-addons/sres/BUILD
@@ -0,0 +1 @@
+make
diff --git a/wm-addons/sres/DEPENDS b/wm-addons/sres/DEPENDS
new file mode 100755
index 0000000..3b59cab
--- /dev/null
+++ b/wm-addons/sres/DEPENDS
@@ -0,0 +1 @@
+depends libxcb
diff --git a/wm-addons/sres/DETAILS b/wm-addons/sres/DETAILS
new file mode 100755
index 0000000..90b8cea
--- /dev/null
+++ b/wm-addons/sres/DETAILS
@@ -0,0 +1,14 @@
+ SPELL=sres
+ VERSION=0.2
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+
SOURCE_URL[0]=https://github.com/baskerville/${SPELL}/archive/${VERSION}.tar.gz
+
SOURCE_HASH=sha512:3851725395eace0103dd57dcc5402eb361898f1193c1f9d08a3d128ffa2c89a1f619052aaad4c499b7d07d6ebb451e5d0f126988d733eb4d96b8a2078cc3fbd7
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOC_DIRS=""
+ WEB_SITE=https://github.com/baskerville/sres
+ LICENSE[0]=UNLICENSE
+ ENTERED=20220717
+ SHORT="print the current screen resolution on stdout"
+cat << EOF
+sres prints the current screen resolution on stdout.
+EOF
diff --git a/wm-addons/sres/HISTORY b/wm-addons/sres/HISTORY
new file mode 100644
index 0000000..c721d49
--- /dev/null
+++ b/wm-addons/sres/HISTORY
@@ -0,0 +1,3 @@
+2022-07-17 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS, DETAILS, {PRE_,}BUILD, INSTALL, type.patch: created
+ spell, version 0.2
diff --git a/wm-addons/sres/INSTALL b/wm-addons/sres/INSTALL
new file mode 100755
index 0000000..e72b41d
--- /dev/null
+++ b/wm-addons/sres/INSTALL
@@ -0,0 +1 @@
+make PREFIX="${INSTALL_ROOT}/usr" install
diff --git a/wm-addons/sres/PRE_BUILD b/wm-addons/sres/PRE_BUILD
new file mode 100755
index 0000000..8361129
--- /dev/null
+++ b/wm-addons/sres/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p1 < "${SPELL_DIRECTORY}/type.patch"
diff --git a/wm-addons/sres/type.patch b/wm-addons/sres/type.patch
new file mode 100644
index 0000000..2980e46
--- /dev/null
+++ b/wm-addons/sres/type.patch
@@ -0,0 +1,22 @@
+From 01360a68ee9ad11b00cb7fa26f3b31abf06fccdc Mon Sep 17 00:00:00 2001
+From: Bastien Dejean <nihilhill AT gmail.com>
+Date: Tue, 12 Apr 2016 10:47:55 +0200
+Subject: [PATCH] Use the proper type for the return value of getopt
+
+---
+ sres.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sres.c b/sres.c
+index ffd6cce..ee31cf4 100644
+--- a/sres.c
++++ b/sres.c
+@@ -13,7 +13,7 @@ int main (int argc, char *argv[]) {
+
+ int return_what = RETURN_BOTH;
+ char format[MAXLEN] = {0};
+- char opt;
++ int opt;
+
+ while ((opt = getopt(argc, argv, "vhHW")) != -1) {
+ switch (opt) {



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (9c5f265385560322a9599d5b4563ae60bb3e9435), Vlad Glagolev, 07/17/2022

Archive powered by MHonArc 2.6.24.

Top of Page