diff options
author | B. Watson <yalhcru@gmail.com> | 2020-06-18 06:20:52 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-20 07:59:29 +0700 |
commit | 5449af59bf00fedd912dc0697fc984361ec0d592 (patch) | |
tree | bcce5031fcc34cca567a1911b7d8d8154d8a75dd /desktop | |
parent | 5b5ba3e908f51d8fbd119a1d3079528fa75f5f76 (diff) | |
download | slackbuilds-5449af59bf00fedd912dc0697fc984361ec0d592.tar.gz |
desktop/clipmenu: Added (clipboard management using dmenu)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/clipmenu/README | 19 | ||||
-rw-r--r-- | desktop/clipmenu/clipmenu.SlackBuild | 86 | ||||
-rw-r--r-- | desktop/clipmenu/clipmenu.info | 12 | ||||
-rw-r--r-- | desktop/clipmenu/slack-desc | 19 |
4 files changed, 136 insertions, 0 deletions
diff --git a/desktop/clipmenu/README b/desktop/clipmenu/README new file mode 100644 index 0000000000..1feba533b4 --- /dev/null +++ b/desktop/clipmenu/README @@ -0,0 +1,19 @@ +clipmenu (clipboard management using dmenu) + +clipmenu is a simple clipboard manager using dmenu (or rofi with +CM_LAUNCHER=rofi) and xsel. + +This build includes clipnotify, since it's used only by clipmenu. + +After installing the package, start clipmenud from your ~/.xinitrc, +before the line that executes your window manager: + + clipmenud &>/dev/null & + +While clipmenud is running, the clipmenu command will bring up a dmenu +where you can select previously-copied text. If you want to bind this +command to a keystroke, xbindkeys is highly recommended. In ~/.xbindkeysrc, +use something like: + +"clipmenu &" + Control+Alt + C diff --git a/desktop/clipmenu/clipmenu.SlackBuild b/desktop/clipmenu/clipmenu.SlackBuild new file mode 100644 index 0000000000..44cd34628e --- /dev/null +++ b/desktop/clipmenu/clipmenu.SlackBuild @@ -0,0 +1,86 @@ +#!/bin/sh + +# Slackware build script for clipmenu + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=clipmenu +VERSION=${VERSION:-6.1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# second tarball, I see no reason to make this a separate build. +PRGNAM2=clipnotify +VERSION2=${VERSION2:-1.0.2} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +# extract both tarballs into our own top-level dir, for ease of cleanup. +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +mkdir -p $PRGNAM +cd $PRGNAM +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $PRGNAM2-$VERSION2 +tar xvf $CWD/$PRGNAM2-$VERSION2.tar.gz +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# No compiled code in clipmenu (shell scripts only). Hardcoded paths in +# Makefile, just bung them in /usr/bin +cd $PRGNAM-$VERSION +mkdir -p $PKG/usr/bin +install -m0755 clipmenu clipmenud clipdel clipctl $PKG/usr/bin + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Compiled code in clipnotify stops this from being a noarch package. +cd $TMP/$PRGNAM/$PRGNAM2-$VERSION2 +make CFLAGS="$SLKCFLAGS" +mkdir -p $PKG/usr/bin +install -s -m0755 -oroot -groot $PRGNAM2 $PKG/usr/bin + +# Include clipnotify's docs, such as they are +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM2-$VERSION2 +cp -a LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM2-$VERSION2 + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/clipmenu/clipmenu.info b/desktop/clipmenu/clipmenu.info new file mode 100644 index 0000000000..0191cd7fe8 --- /dev/null +++ b/desktop/clipmenu/clipmenu.info @@ -0,0 +1,12 @@ +PRGNAM="clipmenu" +VERSION="6.1.0" +HOMEPAGE="https://github.com/cdown/clipmenu/" +DOWNLOAD="https://github.com/cdown/clipmenu/archive/6.1.0/clipmenu-6.1.0.tar.gz \ + https://github.com/cdown/clipnotify/archive/1.0.2/clipnotify-1.0.2.tar.gz" +MD5SUM="87c856cb095a6b6107ff619205860517 \ + fd384b9a04576fd55687faf289c3f31a" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="xsel dmenu" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/desktop/clipmenu/slack-desc b/desktop/clipmenu/slack-desc new file mode 100644 index 0000000000..18b5937827 --- /dev/null +++ b/desktop/clipmenu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +clipmenu: clipmenu (clipboard management using dmenu) +clipmenu: +clipmenu: clipmenu is a simple clipboard manager using dmenu (or rofi with +clipmenu: CM_LAUNCHER=rofi) and xsel. +clipmenu: +clipmenu: +clipmenu: +clipmenu: +clipmenu: +clipmenu: +clipmenu: |