summaryrefslogtreecommitdiff
path: root/graphics/meh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-29 04:38:04 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-07 06:54:20 +0700
commit3a04650276c3d393d13d8b6c7e2e6b310c0a97c4 (patch)
tree6650835d7512de3654286cea51def5b3e8d859a9 /graphics/meh
parent090d5624f18fea61d2bb9634f606e0ee74e2748f (diff)
downloadslackbuilds-3a04650276c3d393d13d8b6c7e2e6b310c0a97c4.tar.gz
graphics/meh: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'graphics/meh')
-rw-r--r--graphics/meh/meh.154
-rw-r--r--graphics/meh/meh.SlackBuild24
-rw-r--r--graphics/meh/meh.info4
3 files changed, 73 insertions, 9 deletions
diff --git a/graphics/meh/meh.1 b/graphics/meh/meh.1
new file mode 100644
index 0000000000..ee2d9d18ad
--- /dev/null
+++ b/graphics/meh/meh.1
@@ -0,0 +1,54 @@
+.TH MEH 1 "2013-12-28"
+.SH NAME
+meh \- simple, minimalist, super fast image viewer
+.SH SYNOPSIS
+.B meh
+.IR FILE ...
+.br
+.B meh \-list
+.RI [ LISTFILE ]
+.br
+.B meh \-ctl
+.br
+.B meh \-v
+.SH DESCRIPTION
+.B meh
+is a small, simple, super fast image viewer using raw XLib.
+It is similar to
+.BR feh (1),
+but faster and simpler.
+.LP
+.B meh
+can use ImageMagick's
+.BR convert (1)
+to view almost 200 file formats, though it is slower for these formats.
+Built-in formats are JPEG, PNG, BMP, and netpbm.
+.SH OPTIONS
+.TP
+.BR \-list \ [\fILISTFILE\fR]
+Treat \fILISTFILE\fR as list of images. Defaults to stdin.
+.TP
+.B \-ctl
+Display files as they are received on stdin.
+.TP
+.B \-v
+Print version and exit.
+.SH KEY BINDINGS
+While
+.B meh
+is displaying an image, the following key bindings are active:
+.TP
+.BR j
+Next image.
+.TP
+.BR k
+Previous image.
+.TP
+.BR r
+Reload current image.
+.TP
+.BR Enter
+Print current image's filename to stdout.
+.TP
+.BR \fBEscape\fR\ or \ \fBq\fR
+Exit \fBmeh\fR.
diff --git a/graphics/meh/meh.SlackBuild b/graphics/meh/meh.SlackBuild
index 6e5dacb44d..1527504e92 100644
--- a/graphics/meh/meh.SlackBuild
+++ b/graphics/meh/meh.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for meh
-# Copyright 2014 Leonard Schmidt <lems@gmx.net>
+# Copyright 2014 Leonard Schmidt <email removed>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -20,9 +20,16 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Now maintained by B. Watson <yalhcru@gmail.com>.
+
+# 20180628 bkw:
+# - Take over maintenance.
+# - Add man page, BUILD=2
+# - Script simplifications.
+
PRGNAM=meh
VERSION=${VERSION:-0.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,18 +70,21 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# Fixes for giflib-5.1 from https://github.com/jhawthorn/meh
patch -p1 < $CWD/meh-giflib.patch
CFLAGS="$SLKCFLAGS" make
-install -D -m 755 meh $PKG/usr/bin/meh
+install -D -s -o root -g root -m 755 $PRGNAM $PKG/usr/bin/$PRGNAM
-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
+# 20180628 bkw: Man page originally came from upstream's git, and I
+# added the key bindings section (and sent a patch upstream, hopefully
+# he likes it).
+mkdir -p $PKG/usr/man/man1
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BUGS COPYING NEWS README THANKS $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/graphics/meh/meh.info b/graphics/meh/meh.info
index c2c973e956..f6c1bb2482 100644
--- a/graphics/meh/meh.info
+++ b/graphics/meh/meh.info
@@ -6,5 +6,5 @@ MD5SUM="7fbc839fe6af33f3f576d067dbe804dd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Leonard Schmidt"
-EMAIL="lems@gmx.net"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"