diff options
Diffstat (limited to 'desktop/xdgmenumaker/xdgmenumaker.SlackBuild')
-rw-r--r-- | desktop/xdgmenumaker/xdgmenumaker.SlackBuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/desktop/xdgmenumaker/xdgmenumaker.SlackBuild b/desktop/xdgmenumaker/xdgmenumaker.SlackBuild index fe9b955446..575ffb9a1a 100644 --- a/desktop/xdgmenumaker/xdgmenumaker.SlackBuild +++ b/desktop/xdgmenumaker/xdgmenumaker.SlackBuild @@ -2,11 +2,14 @@ # Slackware build script for xdgmenumaker # Originally written by Andrew Tkalia -# Modified by B. Watson (yalhcru@gmail.com) +# Modified by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ # for details. +# 20230711 bkw: updated for v2.1. +# 20221229 bkw: updated for v2.0. +# 20220110 bkw: BUILD=2, update slightly for new txt2tags. # 20201103 bkw: updated for v1.6. # 20180917 bkw: updated for v1.5. # 20170301 bkw: Use long-form github URL. @@ -21,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xdgmenumaker -VERSION=${VERSION:-1.6} +VERSION=${VERSION:-2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -29,9 +32,6 @@ PKGTYPE=${PKGTYPE:-tgz} # pure python, no compiled code at all ARCH=noarch -# 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 @@ -60,6 +60,9 @@ sed -i 's,share/man,man,' Makefile # dynamic menu to work, the man page should reflect this: sed -i '/``xdgmenumaker -f windowmaker``/s,``,``/usr/bin/,' man/$PRGNAM.t2t +# 20220110 bkw: new txt2tags 3.7 doesn't support %%mtime in .t2t, so: +sed -i "s,^%%mtime.*,$( date +%Y-%m-%d )," man/$PRGNAM.t2t + make -j1 man install DESTDIR=$PKG PREFIX=/usr gzip $PKG/usr/man/man1/$PRGNAM.1 |