diff options
Diffstat (limited to 'system/wmfsm')
-rw-r--r-- | system/wmfsm/README | 11 | ||||
-rw-r--r-- | system/wmfsm/wmfsm.SlackBuild | 33 |
2 files changed, 27 insertions, 17 deletions
diff --git a/system/wmfsm/README b/system/wmfsm/README index a18f5f2564..712f2ccf45 100644 --- a/system/wmfsm/README +++ b/system/wmfsm/README @@ -1,6 +1,9 @@ -Nice graphical "df", showing you to what degree the mounted filesystems are used. +Nice graphical "df", showing you to what degree the mounted +filesystems are used. -Copy "sample.wmfsmrc" to "~/.wmfsmrc" and edit it for custom configuration. +Copy "sample.wmfsmrc" to "~/.wmfsmrc" and edit it for custom +configuration. -There are 3 available themes: "cyan", "highcolor" (default) and "lowcolor" -Find and edit "--with-xpm=" in "wmfsm.SlackBuild" to change the theme if wanted. +There are 3 available themes: "cyan", "highcolor" (default) and +"lowcolor" Find and edit "--with-xpm=" in "wmfsm.SlackBuild" to change +the theme if wanted. diff --git a/system/wmfsm/wmfsm.SlackBuild b/system/wmfsm/wmfsm.SlackBuild index c57fc1c384..98c937b1d6 100644 --- a/system/wmfsm/wmfsm.SlackBuild +++ b/system/wmfsm/wmfsm.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wmfsm @@ -22,11 +22,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220414 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove 0-byte NEWS from doc dir. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wmfsm SRCDIR=dockapps-83c2c40 VERSION=${VERSION:-0.36} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -66,9 +76,9 @@ cd $SRCDIR 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 {} \+ mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -84,19 +94,16 @@ CXXFLAGS="$SLKCFLAGS" \ --with-xpm=highcolor # Choices are:cyan highcolor lowcolor make +strip $PRGNAM/$PRGNAM make install DESTDIR=$PKG PREFIX=$PKG/usr MANDIR=$PKG/usr/man - -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 +gzip $PKG/usr/man/man*/* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cp -v AUTHORS ChangeLog COPYING NEWS README wmfsm/wmfsmrc.sample $PKG/usr/doc/$PRGNAM-$VERSION/ +install -m0644 AUTHORS ChangeLog COPYING README wmfsm/wmfsmrc.sample \ + $PKG/usr/doc/$PRGNAM-$VERSION/ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |