diff options
Diffstat (limited to 'desktop/evilwm')
-rw-r--r-- | desktop/evilwm/doinst.sh | 3 | ||||
-rw-r--r-- | desktop/evilwm/evilwm.SlackBuild | 30 | ||||
-rw-r--r-- | desktop/evilwm/evilwm.info | 10 |
3 files changed, 27 insertions, 16 deletions
diff --git a/desktop/evilwm/doinst.sh b/desktop/evilwm/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/desktop/evilwm/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/desktop/evilwm/evilwm.SlackBuild b/desktop/evilwm/evilwm.SlackBuild index f3514120ba..02ec475737 100644 --- a/desktop/evilwm/evilwm.SlackBuild +++ b/desktop/evilwm/evilwm.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for evilwm -# Copyright 2013 Marek Buras Silesia,Poland +# Copyright 2023 spaceman # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=evilwm -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.4.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -69,30 +79,28 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Set CFLAGS -sed -ie "s/^CFLAGS = .*/CFLAGS = $SLKCFLAGS/" Makefile +CFLAGS="$SLKCFLAGS" \ +./configure make make install DESTDIR=$PKG -# Strip binaries and libraries 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 -# Move man pages to Slackware's standard location mv $PKG/usr/share/man $PKG/usr -# Compress man pages 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 \ - ChangeLog INSTALL README TODO doc/standards.html \ + ChangeLog INSTALL README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 diff --git a/desktop/evilwm/evilwm.info b/desktop/evilwm/evilwm.info index 7f9a0b644b..312b1e8619 100644 --- a/desktop/evilwm/evilwm.info +++ b/desktop/evilwm/evilwm.info @@ -1,10 +1,10 @@ PRGNAM="evilwm" -VERSION="1.1.1" +VERSION="1.4.3" HOMEPAGE="http://www.6809.org.uk/evilwm/" -DOWNLOAD="http://www.6809.org.uk/evilwm/evilwm-1.1.1.tar.gz" -MD5SUM="fbd6a9bdfe90e51832fce48c5038714b" +DOWNLOAD="https://www.6809.org.uk/evilwm/dl/evilwm-1.4.3.tar.gz" +MD5SUM="c8a8641fb53f03542bb2de4d55dd6933" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Marek Buras" -EMAIL="cyfr0n@onet.pl" +MAINTAINER="spaceman" +EMAIL="spaceman@antispaceman.com" |