diff options
Diffstat (limited to 'desktop/ctwm/ctwm.SlackBuild')
-rw-r--r-- | desktop/ctwm/ctwm.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/desktop/ctwm/ctwm.SlackBuild b/desktop/ctwm/ctwm.SlackBuild index 8ef85ed80e..3ac6ff6da5 100644 --- a/desktop/ctwm/ctwm.SlackBuild +++ b/desktop/ctwm/ctwm.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ctwm -# Copyright 2014, Leonard Schmidt, <lems@gmx.net> +# Copyright 2014-2017 Leonard Schmidt, <lems@gmx.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ctwm -VERSION=${VERSION:-3.8.2} +VERSION=${VERSION:-4.0.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 @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -69,12 +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 {} \; -zcat $CWD/ctwm.path.diff.gz | patch -p1 --verbose -cp Imakefile.local-template Imakefile.local -xmkmf -a - -make CDEBUGFLAGS="$SLKCFLAGS" -make install install.man DESTDIR=$PKG +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DMANDIR=/usr/man \ + -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \ + -DEXAMPLEDIR=/usr/doc/$PRGNAM-$VERSION .. +make +make DESTDIR="$PKG" install +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 @@ -85,9 +87,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r install -D -m0755 $CWD/xinitrc.ctwm $PKG/etc/X11/xinit/xinitrc.ctwm mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGES PROBLEMS README README.gnome TODO TODO.gnome \ - example.ctwmrc levitte.ctwmrc peterc.ctwmrc system.ctwmrc.gnome \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.md README.md \ + examples/example.ctwmrc examples/levitte.ctwmrc \ + examples/peterc.ctwmrc $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |