desktop/dmenu: Updated for version 5.3, new maintainer.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-08-10 13:01:13 -04:00 committed by Willy Sudiarto Raharjo
parent 6a4124cd9b
commit 3d8203937b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 19 additions and 24 deletions

View file

@ -1,6 +1,6 @@
dmenu - dynamic menu
dmenu (dynamic menu for X)
dmenu is a generic and efficient menu for X.
Note: dmenu now includes a tiny utility called stest that is used to
filter files. See its man page for details.
filter files. See its man page for details.

View file

@ -23,10 +23,13 @@
# Modified by Phillip Warner for version >= 4.0
# 20240810 bkw: updated for v5.3.
# - new maintainer.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dmenu
VERSION=${VERSION:-4.9}
VERSION=${VERSION:-5.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -39,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -74,11 +74,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Fixup the CFLAGS and LIBDIR settings to prevent multilib conflicts
patch -p1 < $CWD/dmenu-4.9-libdir_cflags_fixups.diff
@ -92,15 +89,13 @@ make install \
X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 \
DESTDIR=$PKG
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
strip $PKG/usr/bin/{dmenu,stest}
gzip -9 $PKG/usr/man/man*/*
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a LICENSE README $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="dmenu"
VERSION="4.9"
VERSION="5.3"
HOMEPAGE="http://tools.suckless.org/dmenu"
DOWNLOAD="http://dl.suckless.org/tools/dmenu-4.9.tar.gz"
MD5SUM="9a537ec9a3a2ce9f08963d66b56cc030"
DOWNLOAD="http://dl.suckless.org/tools/dmenu-5.3.tar.gz"
MD5SUM="d9c515ea242e412a02c30a09a0752161"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Phillip Warner"
EMAIL="pc_warner@yahoo.com"
MAINTAINER="B. Watson"
EMAIL="urchlay@slackware.uk"