aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2013-12-02 22:34:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-12-02 22:34:10 +0700
commit4b01b571b333562408b145256e7b3948441d8ddb (patch)
tree231d7098e1d19c281feba26516cf1c732183cada /desktop
parent01b88d84283879d4f43c5bdbb8111fbdafcd43ce (diff)
desktop/spectrwm: Updated for version 2.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/spectrwm/examples/README5
-rw-r--r--desktop/spectrwm/examples/spectrwm.conf1
-rw-r--r--desktop/spectrwm/examples/spectrwm_screenshot.sh32
-rw-r--r--desktop/spectrwm/patches/01-linux_Makefile_swmhack_libdir.diff9
-rw-r--r--desktop/spectrwm/spectrwm.SlackBuild15
-rw-r--r--desktop/spectrwm/spectrwm.info6
6 files changed, 42 insertions, 26 deletions
diff --git a/desktop/spectrwm/examples/README b/desktop/spectrwm/examples/README
index 378ecae0af247..f908cfb187bbc 100644
--- a/desktop/spectrwm/examples/README
+++ b/desktop/spectrwm/examples/README
@@ -19,8 +19,9 @@ o wifi_link_quality.sh - optional
spectrwm_screenshot.sh:
-This makes a screenshot of the actual X11 screen or optionally just a window.
-It needs the graphics/scrot package from the SBo repository.
+This makes a screenshot of the whole X11 screen or optionally just a window.
+It needs the ImageMagick (included in Slackware) or GraphicsMagick (available
+from the SBo repository) package's `import` utility.
You can configure it in your spectrwm.conf like this:
program[capture] = spectrwm_screenshot.sh full
bind[capture] = MOD+c
diff --git a/desktop/spectrwm/examples/spectrwm.conf b/desktop/spectrwm/examples/spectrwm.conf
index d4c47344801b7..a88cd19992aa5 100644
--- a/desktop/spectrwm/examples/spectrwm.conf
+++ b/desktop/spectrwm/examples/spectrwm.conf
@@ -17,6 +17,7 @@ title_name_enabled = 1 # current window's title
title_class_enabled = 1 # current window's class name
window_name_enabled = 1 # current window's name
urgent_enabled = 1 # information about the workspace's urgency hints
+iconic_enabled = 1 # show the number of iconified windows on the workspace
verbose_layout = 0 # workspace's master and stack values
focus_mode = default # default, follow, manual
diff --git a/desktop/spectrwm/examples/spectrwm_screenshot.sh b/desktop/spectrwm/examples/spectrwm_screenshot.sh
index 6a01fd67a69d5..c169a1dec62ae 100644
--- a/desktop/spectrwm/examples/spectrwm_screenshot.sh
+++ b/desktop/spectrwm/examples/spectrwm_screenshot.sh
@@ -1,21 +1,23 @@
#!/bin/sh
-SCROT=$(which scrot)
-[ -x "${SCROT}" ] || exit 1
+CAPTURE_TOOL=/usr/bin/import
+if [ ! -x "${CAPTURE_TOOL}" ];then
+ echo "$0: couldn't run ${CAPTURE_TOOL}" >&2
+ exit 1
+fi
-screenshot() {
- case $1 in
- full)
- "${SCROT}" --multidisp
- ;;
- window)
+CAPTURE_PATH="${HOME}/spectrwm_capture_$(date +%FT%T).png"
+
+case "$1" in
+ 'full')
+ "${CAPTURE_TOOL}" -window root png:"${CAPTURE_PATH}"
+ ;;
+ 'window')
sleep 0.5
- "${SCROT}" --select
- ;;
+ "${CAPTURE_TOOL}" png:"${CAPTURE_PATH}"
+ ;;
*)
- ;;
- esac;
-}
-
-screenshot $1
+ echo "$0: $0 <-full | -window>" >&2
+ ;;
+esac
diff --git a/desktop/spectrwm/patches/01-linux_Makefile_swmhack_libdir.diff b/desktop/spectrwm/patches/01-linux_Makefile_swmhack_libdir.diff
new file mode 100644
index 0000000000000..e5dd7f51b10a4
--- /dev/null
+++ b/desktop/spectrwm/patches/01-linux_Makefile_swmhack_libdir.diff
@@ -0,0 +1,9 @@
+--- linux/Makefile.orig 2013-11-27 10:39:26.448879134 +0100
++++ linux/Makefile 2013-11-27 10:42:28.977873694 +0100
+@@ -1,5 +1,5 @@
+ CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
+-CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"libswmhack.so.$(LVERS)\"
++CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
+ LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor
+
+ PREFIX?= /usr/local
diff --git a/desktop/spectrwm/spectrwm.SlackBuild b/desktop/spectrwm/spectrwm.SlackBuild
index 8e408f48c9498..638221a334ab3 100644
--- a/desktop/spectrwm/spectrwm.SlackBuild
+++ b/desktop/spectrwm/spectrwm.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=spectrwm
-VERSION=${VERSION:-2.3.0}
+VERSION=${VERSION:-2.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,11 +65,12 @@ tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p0 < $CWD/patches/01-linux_Makefile_swmhack_libdir.diff
cd linux
CFLAGS="$SLKCFLAGS" make \
PREFIX=/usr \
@@ -82,7 +83,9 @@ cd linux
DESTDIR=$PKG
cd ..
-strip --strip-unneeded $PKG/usr/bin/spectrwm
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
rm -f $PKG/usr/bin/scrotwm
# Fixup the manpages
diff --git a/desktop/spectrwm/spectrwm.info b/desktop/spectrwm/spectrwm.info
index 313d1c1a37682..8557517948379 100644
--- a/desktop/spectrwm/spectrwm.info
+++ b/desktop/spectrwm/spectrwm.info
@@ -1,8 +1,8 @@
PRGNAM="spectrwm"
-VERSION="2.3.0"
+VERSION="2.4.0"
HOMEPAGE="https://opensource.conformal.com/wiki/spectrwm"
-DOWNLOAD="https://opensource.conformal.com/snapshots/spectrwm/spectrwm-2.3.0.tgz"
-MD5SUM="7698a5b219fdabad07a76ef45b1360d1"
+DOWNLOAD="https://opensource.conformal.com/snapshots/spectrwm/spectrwm-2.4.0.tgz"
+MD5SUM="23e32c1e292f2fc94ed88195ffe60023"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""