diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/dmenu2/README | 12 | ||||
-rw-r--r-- | desktop/dmenu2/dmenu2-0.2-config-fix.diff | 30 | ||||
-rw-r--r-- | desktop/dmenu2/dmenu2.info | 10 | ||||
-rw-r--r-- | desktop/dmenu2/slack-desc | 19 | ||||
-rw-r--r-- | desktop/lxpanel/fix_battery_alarm.patch | 47 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.SlackBuild | 6 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.info | 6 | ||||
-rw-r--r-- | desktop/screenkey/screenkey.SlackBuild | 8 | ||||
-rw-r--r-- | desktop/screenkey/screenkey.info | 8 | ||||
-rw-r--r-- | desktop/xss-lock/README | 17 | ||||
-rw-r--r-- | desktop/xss-lock/slack-desc | 19 | ||||
-rw-r--r-- | desktop/xss-lock/xss-lock.1 | 200 | ||||
-rw-r--r-- | desktop/xss-lock/xss-lock.SlackBuild (renamed from desktop/dmenu2/dmenu2.SlackBuild) | 67 | ||||
-rw-r--r-- | desktop/xss-lock/xss-lock.info | 10 |
14 files changed, 295 insertions, 164 deletions
diff --git a/desktop/dmenu2/README b/desktop/dmenu2/README deleted file mode 100644 index 30bf059666..0000000000 --- a/desktop/dmenu2/README +++ /dev/null @@ -1,12 +0,0 @@ -dmenu2 (dynamic menu extended) - -dmenu2 is a fork of the original dmenu - an efficient dynamic menu for -X patched with XFT, quiet, x & y, token, fuzzy matching, follow focus, -tab nav, filter. - -Added option to set screen on which dmenu appears, as well as opacity, -window class and window name. Also allows to dim screen with selected -color and opacity while dmenu2 is running. Added underline color and -height. (options -uc and -uh) - -NOTE: This package conflicts with the original dmenu package. diff --git a/desktop/dmenu2/dmenu2-0.2-config-fix.diff b/desktop/dmenu2/dmenu2-0.2-config-fix.diff deleted file mode 100644 index dd4316a847..0000000000 --- a/desktop/dmenu2/dmenu2-0.2-config-fix.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- config.mk 2014-09-13 18:36:13.478755045 +0300 -+++ a/config.mk 2014-09-13 18:36:18.552755303 +0300 -@@ -1,9 +1,10 @@ - # dmenu2 version --VERSION = 0.1 -+VERSION = 0.2 - - # paths - PREFIX = /usr/local - MANPREFIX = ${PREFIX}/share/man -+LIBDIR = /usr/local/lib - - X11INC = /usr/X11R6/include - X11LIB = /usr/X11R6/lib -@@ -18,12 +19,13 @@ - - # includes and libs - INCS = -I${X11INC} ${XFTINC} --LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} -+LIBS = -L${LIBDIR} -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} - - # flags -+OPTS ?= 0s - CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} - #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} --CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -+CFLAGS = -std=c99 -pedantic -Wall ${OPTS} ${INCS} ${CPPFLAGS} - LDFLAGS = -s ${LIBS} - - # compiler and linker diff --git a/desktop/dmenu2/dmenu2.info b/desktop/dmenu2/dmenu2.info deleted file mode 100644 index 243f34cbe6..0000000000 --- a/desktop/dmenu2/dmenu2.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="dmenu2" -VERSION="0.2" -HOMEPAGE="https://bitbucket.org/melek/dmenu2" -DOWNLOAD="https://bitbucket.org/melek/dmenu2/downloads/dmenu2-0.2.tar.gz" -MD5SUM="bc694c8b9fa3b8f6e7be8046d46e5bc5" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Симон Болоканов" -EMAIL="sbolokanov@abv.bg" diff --git a/desktop/dmenu2/slack-desc b/desktop/dmenu2/slack-desc deleted file mode 100644 index aedbfafd4d..0000000000 --- a/desktop/dmenu2/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -dmenu2: dmenu2 (dynamic menu extended) -dmenu2: -dmenu2: dmenu2 is a fork of original dmenu - an efficient dynamic menu -dmenu2: for X, patched with XFT, quiet, x & y, token, fuzzy matching, follow -dmenu2: focus, tab nav, filter. Added option to set screen on which dmenu -dmenu2: appears, as well as opacity, window class and window name. -dmenu2: Also allows to dim screen with selected color and opacity while -dmenu2: dmenu2 is running. Added underline color and height. -dmenu2: -dmenu2: Homepage: https://bitbucket.org/melek/dmenu2 -dmenu2: diff --git a/desktop/lxpanel/fix_battery_alarm.patch b/desktop/lxpanel/fix_battery_alarm.patch deleted file mode 100644 index 2753619444..0000000000 --- a/desktop/lxpanel/fix_battery_alarm.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 19936f24c343437447ef7e765113fc4679df07eb Mon Sep 17 00:00:00 2001 -From: Andriy Grytsenko <andrej@rep.kiev.ua> -Date: Wed, 27 Feb 2019 02:49:00 +0200 -Subject: [PATCH] fix battery alarm when measurement of current is missing. - -See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854643 ---- - ChangeLog | 4 ++++ - plugins/batt/batt.c | 3 ++- - 2 files changed, 6 insertions(+), 1 deletion(-) - -diff --git a/ChangeLog b/ChangeLog -index c0861de..0d610c8 100644 ---- a/ChangeLog -+++ b/ChangeLog -@@ -1,3 +1,7 @@ -+0.10.1 -+------------------------------------------------------------------------- -+* Fixed battery alarm when measurement of current is missing. -+ - 0.10.0 - ------------------------------------------------------------------------- - * Fixed delayed application of font cnahges on dclock and weather plugins. -diff --git a/plugins/batt/batt.c b/plugins/batt/batt.c -index f47549c..cc7bfea 100644 ---- a/plugins/batt/batt.c -+++ b/plugins/batt/batt.c -@@ -111,6 +111,7 @@ static void * alarmProcess(void *arg) { - sem_wait(a->lock); - if (system(a->command) != 0) - g_warning("plugin batt: failed to execute alarm command \"%s\"", a->command); -+ sleep(51); /* do not spam messages more often than once a minute */ - sem_post(a->lock); - - g_free(a); -@@ -257,7 +258,7 @@ void update_display(lx_battery *lx_b, gboolean repaint) { - isCharging = battery_is_charging ( b ); - - /* Consider running the alarm command */ -- if ( !isCharging && rate > 0 && -+ if ( !isCharging && - ( ( battery_get_remaining( b ) / 60 ) < (int)lx_b->alarmTime ) ) - { - /* FIXME: this should be done using glibs process functions */ --- -2.1.4 - diff --git a/desktop/lxpanel/lxpanel.SlackBuild b/desktop/lxpanel/lxpanel.SlackBuild index cce093b1e7..edbbc89a7e 100644 --- a/desktop/lxpanel/lxpanel.SlackBuild +++ b/desktop/lxpanel/lxpanel.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for lxpanel # (C) 2008 Michael Wagner <lapinours@web.de> -# Copyright 2011-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy +# Copyright 2011-2021 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ # Modified by Matteo Bernardini <ponce@slackbuilds.org> PRGNAM=lxpanel -VERSION=${VERSION:-0.10.0} +VERSION=${VERSION:-0.10.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,8 +74,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/fix_battery_alarm.patch - sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ diff --git a/desktop/lxpanel/lxpanel.info b/desktop/lxpanel/lxpanel.info index be31b8a229..acb7f1aa94 100644 --- a/desktop/lxpanel/lxpanel.info +++ b/desktop/lxpanel/lxpanel.info @@ -1,8 +1,8 @@ PRGNAM="lxpanel" -VERSION="0.10.0" +VERSION="0.10.1" HOMEPAGE="https://wiki.lxde.org/en/LXPanel" -DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.0.tar.xz" -MD5SUM="e6a1f9bd5cf39812e1c5d2453a34a7c5" +DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.1.tar.xz" +MD5SUM="c922d044789c3d7ae028f0e80dea18b0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libfm" diff --git a/desktop/screenkey/screenkey.SlackBuild b/desktop/screenkey/screenkey.SlackBuild index 1e58348e6a..59c132c8e0 100644 --- a/desktop/screenkey/screenkey.SlackBuild +++ b/desktop/screenkey/screenkey.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for screenkey -# Copyright 2013-2019 Benjamin Trigona-Harany +# Copyright 2013-2021 Benjamin Trigona-Harany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=screenkey -VERSION=${VERSION:-0.9} +VERSION=${VERSION:-1.4} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -69,14 +69,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +python3 setup.py install --root=$PKG install -D -m 0644 data/$PRGNAM.desktop \ $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING.txt NEWS.rst README.rst \ + README.rst \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/desktop/screenkey/screenkey.info b/desktop/screenkey/screenkey.info index 13aa436c68..b2e68c86aa 100644 --- a/desktop/screenkey/screenkey.info +++ b/desktop/screenkey/screenkey.info @@ -1,10 +1,10 @@ PRGNAM="screenkey" -VERSION="0.9" +VERSION="1.4" HOMEPAGE="https://www.thregr.org/~wavexx/software/screenkey/" -DOWNLOAD="https://www.thregr.org/~wavexx/software/screenkey/releases/screenkey-0.9.tar.gz" -MD5SUM="14b194d2b3c937ae6bc905dea69f3502" +DOWNLOAD="https://www.thregr.org/~wavexx/software/screenkey/releases/screenkey-1.4.tar.gz" +D5SUM="14b1.4d2b3c937ae6bc905dea69f3502" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="FontAwesome setuptools-git python-distutils-extra slop" +REQUIRES="FontAwesome setuptools-git pygobject3-python3 python3-babel slop" MAINTAINER="Benjamin Trigona-Harany" EMAIL="slackbuilds@jaxartes.net" diff --git a/desktop/xss-lock/README b/desktop/xss-lock/README new file mode 100644 index 0000000000..5a187fb578 --- /dev/null +++ b/desktop/xss-lock/README @@ -0,0 +1,17 @@ +This is xss-lock, a program for using an external locker as the X +screensaver. + +xss-lock can be run at startup with a favorite screensaving or +screenlocking program: + + xss-lock slock + +xset values for screensaver onset are respected. More details can be +found in the man page. + +xss-lock is a good choice for window manager-only graphical setups. +Desktop environments with native screensaver programs can (and probably +will) interfere with xss-lock. + +Optional dependency: docutils (if not installed, the man page will be +copied in rather than built) diff --git a/desktop/xss-lock/slack-desc b/desktop/xss-lock/slack-desc new file mode 100644 index 0000000000..2ce419405c --- /dev/null +++ b/desktop/xss-lock/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------------------------------------------------------| +xss-lock: xss-lock (using external locker as X screensaver) +xss-lock: +xss-lock: xss-lock hooks up a favorite screen locker to the MIT screen saver +xss-lock: extension for X and to the login manager. +xss-lock: +xss-lock: Although xss-lock conflicts with no Slackware packages, native DE +xss-lock: screensavers may cause runtime interference. +xss-lock: +xss-lock: Author: Raymond Wagenmaker +xss-lock: +xss-lock: https://github.com/xdbob/xss-lock diff --git a/desktop/xss-lock/xss-lock.1 b/desktop/xss-lock/xss-lock.1 new file mode 100644 index 0000000000..6004824c48 --- /dev/null +++ b/desktop/xss-lock/xss-lock.1 @@ -0,0 +1,200 @@ +.\" Man page generated from reStructuredText. +. +.TH "XSS-LOCK" 1 "November 2013" "" "" +.SH NAME +xss-lock \- use external locker as X screen saver +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.SH SYNOPSIS +.nf +xss\-lock [\-n \fInotify_cmd\fP] [\-\-ignore\-sleep] [\-l] [\-v|\-q] [\-\-] \fIlocker\fP [\fIarg\fP] ... +xss\-lock \-\-help|\-\-version +.fi +.sp +.SH DESCRIPTION +.sp +\fBxss\-lock\fP hooks up your favorite locker to the MIT screen saver extension +for X and also to systemd\(aqs login manager. The locker is executed in response +to events from these two sources: +.INDENT 0.0 +.IP \(bu 2 +X signals when screen saver activation is forced or after a period of user +inactivity (as set with \fBxset s TIMEOUT\fP). In the latter case, the notifier +command, if specified, is executed first. +.IP \(bu 2 +The login manager can also request that the session be locked; as a result of +\fBloginctl lock\-sessions\fP, for example. Additionally, \fBxss\-lock\fP uses the +inhibition logic to lock the screen before the system goes to sleep. +.UNINDENT +.sp +\fBxss\-lock\fP waits for the locker to exit \-\- or kills it when screen saver +deactivation or session unlocking is forced \-\- so the command should not fork. +.sp +Also, \fBxss\-lock\fP manages the idle hint on the login session. The idle state +of the session is directly linked to user activity as reported by X (except +when the notifier runs before locking the screen). When all sessions are idle, +the login manager can take action (such as suspending the system) after a +preconfigured delay. +.SH OPTIONS +.INDENT 0.0 +.TP +.BI \-n \ cmd\fR,\fB \ \-\-notifier\fB= cmd +Run \fIcmd\fP when the screen saver activates because of user +inactivity. Shell\-style quoting is supported. The notifier is +killed when X signals user activity or when the locker is +started. The locker is started after the first screen saver +cycle, as set with \fBxset s TIMEOUT CYCLE\fP\&. +.sp +This can be used to run a countdown or (on laptops) dim the +screen before locking. For an example, see the script +\fI/usr/share/doc/xss\-lock/dim\-screen.sh\fP\&. +.TP +.B \-l\fP,\fB \-\-tranfer\-sleep\-lock +Allow the locker process to inherit the file descriptor that +represents the delay lock obtained from the login manager. The +corresponding index will be made available in the environment +variable \fB$XSS_SLEEP_LOCK_FD\fP; this will only be set if the +reason for locking is that the system is preparing to go to +sleep. The locker should close this file descriptor to indicate +it is ready. +.sp +Example scripts that wrap existing lockers are available as +\fI/usr/share/doc/xss\-lock/transfer\-sleep\-lock\-*.sh\fP\&. +.TP +.B \-\-ignore\-sleep +Do not lock on suspend/hibernate. +.TP +.B \-q\fP,\fB \-\-quiet +Output only fatal errors. +.TP +.B \-v\fP,\fB \-\-verbose +Output more messages. +.TP +.B \-h\fP,\fB \-\-help +Print help message and exit. +.TP +.B \-\-version +Print version number and exit. +.UNINDENT +.SH SIGNALS +.INDENT 0.0 +.TP +.B SIGHUP +Upon receiving this signal, \fBxss\-lock\fP resets the screen saver, but only +if the screen is not currently locked (unlike \fBxset s reset\fP). +.sp +This can be used in MPlayer\(aqs configuration as a workaround for MPlayer\(aqs +failure to restart the screen saver timer when playback is paused: +.INDENT 7.0 +.INDENT 3.5 +.sp +.nf +.ft C +heartbeat\-cmd="killall \-HUP xss\-lock" +stop\-xscreensaver=false +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +\fBNOTE:\fP +.INDENT 7.0 +.INDENT 3.5 +This is ineffective with mplayer2 (and mpv), because its heart +keeps beating while playback is paused. +.UNINDENT +.UNINDENT +.TP +.B SIGINT/SIGTERM +Upon receiving this signal, \fBxss\-lock\fP exits after killing any running +notifier or locker. +.UNINDENT +.SH NOTES +.INDENT 0.0 +.IP \(bu 2 +Some applications rely on the \fBxdg\-screensaver\fP script from xdg\-utils, +which uses \fBxset s off\fP and \fBxset s default\fP to suspend and resume the +screen saver, respectively. The latter resets the timeout and cycle to the +server defaults (\fBxset s on\fP uses a hardcoded default instead), so this +only works if you are happy with (or can control) the server settings. +.sp +To fix the resume action in this script (or a copy in \fI~/bin\fP preceding the +original in \fB$PATH\fP), either replace \fBon\fP by your preferred timeout and +cycle, or avoid hardcoded time values by patching the script to run a suspend +loop as it does for other screen savers, using +\fI/usr/share/doc/xss\-lock/xdg\-screensaver.patch\fP\&. +.UNINDENT +.SH EXAMPLES +.INDENT 0.0 +.IP \(bu 2 +Run \fBxlock\fP after ten minutes of inactivity: +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +xset 600 +xss\-lock xlock +resetsaver +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +Without \fB+resetsaver\fP, \fBxlock\fP forces a screen saver reset during +startup, thereby telling \fBxss\-lock\fP to immediately kill \fBxlock\fP again. +.IP \(bu 2 +Dim the screen after three minutes of inactivity, lock the screen two minutes +later using \fBi3lock\fP: +.INDENT 2.0 +.INDENT 3.5 +.sp +.nf +.ft C +xset 180 120 +xss\-lock \-n dim\-screen.sh \-\- i3lock \-n +.ft P +.fi +.UNINDENT +.UNINDENT +.sp +\fBNOTE:\fP +.INDENT 2.0 +.INDENT 3.5 +A script is provided to use \fBi3lock\fP\(aqs forking mode with the +\fB\-\-tranfer\-sleep\-lock\fP option (see above). +.UNINDENT +.UNINDENT +.UNINDENT +.SH SEE ALSO +.sp +\fBxset\fP(1), +\fBsystemd\-logind.service\fP(8) +.SH AUTHOR +Raymond Wagenmaker <raymondwagenmaker@gmail.com> +.\" Generated by docutils manpage writer. +. diff --git a/desktop/dmenu2/dmenu2.SlackBuild b/desktop/xss-lock/xss-lock.SlackBuild index 4f1de8103b..ef05210aff 100644 --- a/desktop/dmenu2/dmenu2.SlackBuild +++ b/desktop/xss-lock/xss-lock.SlackBuild @@ -1,6 +1,8 @@ #!/bin/sh -# Copyright (c) 2014, Simon Bolokanov, Bulgaria <sbolokanov@abv.bg> +# Slackware build script for xss-lock + +# Copyright 2021 K. Eugene Carlson Tsukuba, Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -20,17 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Симон Болоканов <sbolokanov@abv.bg> -# dmenu2 v0.2 - init script - 14.09.2014 - -PRGNAM=dmenu2 -VERSION=${VERSION:-0.2} +PRGNAM=xss-lock +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,18 +40,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" +# LIBDIRSUFFIX flag not available +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" 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 @@ -70,26 +66,35 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# config setup -patch -p1 < $CWD/dmenu2-0.2-config-fix.diff - -make clean install \ - OPTS="$SLKCFLAGS" \ - PREFIX=/usr \ - LIBDIR=/usr/lib${LIBDIRSUFFIX} \ - MANPREFIX=/usr/man \ - X11INC=/usr/include \ - X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 \ - DESTDIR=$PKG +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_STRIP=/usr/bin/strip \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. -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 - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +# man page will be copied over if docutils is not available. +if [ -d $PKG/usr/share/man ]; then + mv $PKG/usr/share/man $PKG/usr + find $PKG/usr/man -type f -exec gzip -9 {} \; + for i in $( find $PKG/usr/man -type l ) ; do + ln -s $( readlink $i ).gz $i.gz + rm $i + done +else + mkdir -p $PKG/usr/man/man1 + gzip -9 -c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +fi -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +# Moving and renaming the documentation directory +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +rm -r $PKG/usr/share/doc +cp -a $CWD/README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/desktop/xss-lock/xss-lock.info b/desktop/xss-lock/xss-lock.info new file mode 100644 index 0000000000..168d7dfaff --- /dev/null +++ b/desktop/xss-lock/xss-lock.info @@ -0,0 +1,10 @@ +PRGNAM="xss-lock" +VERSION="0.3.0" +HOMEPAGE="https://github.com/xdbob/xss-lock" +DOWNLOAD="https://github.com/xdbob/xss-lock/archive/v0.3.0/xss-lock-0.3.0.tar.gz" +MD5SUM="ebfa58416117a272c2e534036a0deeb4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="K. Eugene Carlson" +EMAIL="kvngncrlsn@gmail.com" |