diff options
author | Damian Perticone <mjolnirdam@gmail.com> | 2022-04-02 17:44:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:19:12 +0700 |
commit | 8519f564abb96e9d00b9cc0cbf656e42d8681a16 (patch) | |
tree | b4e33accb55a3f0f573ac90648f13efd165744dc /desktop | |
parent | 23ff8d94efdc72fc77264aa931755aa1df886428 (diff) |
desktop/NsCDE: Added (CDE Desktop).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/NsCDE/NsCDE.SlackBuild | 112 | ||||
-rw-r--r-- | desktop/NsCDE/NsCDE.info | 10 | ||||
-rw-r--r-- | desktop/NsCDE/README | 1 | ||||
-rw-r--r-- | desktop/NsCDE/slack-desc | 19 | ||||
-rw-r--r-- | desktop/NsCDE/xinitrc.NsCDE | 33 |
5 files changed, 175 insertions, 0 deletions
diff --git a/desktop/NsCDE/NsCDE.SlackBuild b/desktop/NsCDE/NsCDE.SlackBuild new file mode 100644 index 0000000000000..575a0e759e49e --- /dev/null +++ b/desktop/NsCDE/NsCDE.SlackBuild @@ -0,0 +1,112 @@ +#!/bin/bash + +# Slackware build script for NsCDE + +# Copyright 2022 Damian Perticone Berisso,Argentina +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# 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=NsCDE +VERSION=${VERSION:-2.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +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 {} \; + + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +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 + +mkdir -p $PKG/etc/X11/xinit +cat $CWD/xinitrc.NsCDE > $PKG/etc/X11/xinit/xinitrc.NsCDE +chmod 0755 $PKG/etc/X11/xinit/xinitrc.NsCDE + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a INSTALL.md LICENSE README.md README.localization NsCDE.png $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/NsCDE/NsCDE.info b/desktop/NsCDE/NsCDE.info new file mode 100644 index 0000000000000..a7ea7a1960a93 --- /dev/null +++ b/desktop/NsCDE/NsCDE.info @@ -0,0 +1,10 @@ +PRGNAM="NsCDE" +VERSION="2.1" +HOMEPAGE="https://github.com/NsCDE/NsCDE" +DOWNLOAD="https://github.com/NsCDE/NsCDE/archive/refs/tags/2.1/NsCDE-2.1.tar.gz" +MD5SUM="37c25095ad723c36cdfdb356dbc67f48" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Damian Perticone" +EMAIL="mjolnirdam@gmail.com" diff --git a/desktop/NsCDE/README b/desktop/NsCDE/README new file mode 100644 index 0000000000000..8bc73834145a3 --- /dev/null +++ b/desktop/NsCDE/README @@ -0,0 +1 @@ +NsCDE is a retro but powerful UNIX desktop environment diff --git a/desktop/NsCDE/slack-desc b/desktop/NsCDE/slack-desc new file mode 100644 index 0000000000000..b934980959188 --- /dev/null +++ b/desktop/NsCDE/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +NsCDE: NsCDE (CDE Desktop) +NsCDE: +NsCDE: Modern and functional CDE desktop based on FVWM +NsCDE: +NsCDE: +NsCDE: +NsCDE: +NsCDE: +NsCDE: https://github.com/NsCDE/NsCDE +NsCDE: +NsCDE: diff --git a/desktop/NsCDE/xinitrc.NsCDE b/desktop/NsCDE/xinitrc.NsCDE new file mode 100644 index 0000000000000..87aa57a7659a7 --- /dev/null +++ b/desktop/NsCDE/xinitrc.NsCDE @@ -0,0 +1,33 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# Start the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + exec ck-launch-session /usr/bin/nscde +else + exec /usr/bin/nscde +fi + |