summaryrefslogtreecommitdiffstats
path: root/wm-addons
diff options
context:
space:
mode:
Diffstat (limited to 'wm-addons')
-rwxr-xr-xwm-addons/wmutils/BUILD1
-rwxr-xr-xwm-addons/wmutils/DEPENDS6
-rwxr-xr-xwm-addons/wmutils/DETAILS41
-rw-r--r--wm-addons/wmutils/HISTORY3
-rwxr-xr-xwm-addons/wmutils/PREPARE2
-rwxr-xr-xwm-addons/wmutils/PRE_BUILD7
6 files changed, 60 insertions, 0 deletions
diff --git a/wm-addons/wmutils/BUILD b/wm-addons/wmutils/BUILD
new file mode 100755
index 0000000000..6dfecc1f8a
--- /dev/null
+++ b/wm-addons/wmutils/BUILD
@@ -0,0 +1 @@
+default_build_make
diff --git a/wm-addons/wmutils/DEPENDS b/wm-addons/wmutils/DEPENDS
new file mode 100755
index 0000000000..6870108b66
--- /dev/null
+++ b/wm-addons/wmutils/DEPENDS
@@ -0,0 +1,6 @@
+if [[ "${WUTILS_BRANCH}" == "scm" ]]; then
+ depends git
+fi &&
+
+depends libxcb &&
+depends xcb-util
diff --git a/wm-addons/wmutils/DETAILS b/wm-addons/wmutils/DETAILS
new file mode 100755
index 0000000000..a07841835e
--- /dev/null
+++ b/wm-addons/wmutils/DETAILS
@@ -0,0 +1,41 @@
+. "${GRIMOIRE}/FUNCTIONS"
+ SPELL="wmutils"
+if [[ "${WMUTILS_BRANCH}" == "scm" ]]; then
+ VERSION="$(get_scm_version)"
+ SOURCE="${SPELL}-scm.tar.xz"
+ SOURCE_URL[0]="git://github.com/${SPELL}/core:${SPELL}-scm"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
+ SOURCE_IGNORE="volatile"
+ FORCE_DOWNLOAD="on"
+else
+ VERSION="1.4"
+ SOURCE_HASH="sha512:cdecde223e812494752d877e0e010c0cc7c1ef96e0f9aab7c517f2112f189943c84f958fb2ac4da7068ae2c5e463fe38ec783567ef980d8e63f5d299d746aee9"
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/core-${VERSION}"
+ SOURCE_URL[0]="https://github.com/${SPELL}/core/archive/v${VERSION}.tar.gz"
+fi
+ LICENSE[0]="ISC"
+ WEB_SITE="https://github.com/wmutils/core"
+ ENTERED="20190216"
+ SHORT="a set of window manipulation tools"
+cat << EOF
+wmutils' core is a set of tools for X windows manipulation. Each tool only has
+one purpose, to make it as flexible and reliable as possible.
+
+Utilities:
+ * chwb - change window's border
+ * chwso - change window's stacking order
+ * ignw - ignore/unignore window
+ * killw - kill windows
+ * lsw - list windows
+ * mapw - map/unmap windows
+ * pfw - print focused window
+ * wattr - show window's attributes
+ * wmp - move the mouse pointer
+ * wmv - move a window
+ * wrs - resize a window
+ * wtf - focus a window
+ * wtp - teleport a window
+
+All these tools come with a manpage ! read them for further information.
+EOF
diff --git a/wm-addons/wmutils/HISTORY b/wm-addons/wmutils/HISTORY
new file mode 100644
index 0000000000..60140d7a9f
--- /dev/null
+++ b/wm-addons/wmutils/HISTORY
@@ -0,0 +1,3 @@
+2019-02-16 Pavel Vinogradov <public@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD, PREPARE: created spell
+
diff --git a/wm-addons/wmutils/PREPARE b/wm-addons/wmutils/PREPARE
new file mode 100755
index 0000000000..e38d86f7e9
--- /dev/null
+++ b/wm-addons/wmutils/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm
diff --git a/wm-addons/wmutils/PRE_BUILD b/wm-addons/wmutils/PRE_BUILD
new file mode 100755
index 0000000000..1629030ab5
--- /dev/null
+++ b/wm-addons/wmutils/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+sed -e "/CFLAGS/s|$| ${CFLAGS}|" \
+ -e "/LDFLAGS/s|$| ${LDFLAGS}|" \
+ -e "/MANPREFIX/s|man|share/&|" \
+ -i config.mk