SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Midnight commander will use the same font as the terminal emulator. Many modern terminal emulators (e.g., konsole) have built-in support for changing the font size (in konsole, it's under Profile preferences). So, if you run it in one of those terminal emulators, you can change the font size that way.
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618
Rep:
Quote:
Originally Posted by bassmadrigal
For another recommendation, if you're just looking for a two panel file manager, I personally use krusader, which has a SlackBuild. It is KDE-based, so it probably relies on KDE libs being installed.
I also use krusader and have been for quite a few years. Best of 'em all IMHO.
#!/bin/sh
# Slackware build script for doublecmd
# Copyright 2016
# 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.
PRGNAM=doublecmd
VERSION=${VERSION:-0.7.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_LQ}
SRCVERSION=${SRCVERSION:-0.7.4-src}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i386 ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/LQ}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$SRCVERSION.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 {} \;
# Hurried repair
cat <<EOFA > environmentoptions.xml
<?xml version="1.0"?>
<CONFIG>
<EnvironmentOptions>
<LazarusDirectory Value="/usr/share/lazarus"/>
<CompilerFilename Value="/usr/bin/fpc"/>
</EnvironmentOptions>
</CONFIG>
EOFA
sed -i 's,$lazbuild,$lazbuild --primary-config-path="..",' components/build.sh
sed -i 's,$lazbuild,$lazbuild --primary-config-path="..",' plugins/build.sh
sed -i 's,$lazbuild,$lazbuild --primary-config-path=".",' build.sh
sed -i 's,usr/share/man,usr/man,' install/linux/install.sh
# Widgetset: gtk2 or qt
./build.sh beta gtk2
install/linux/install.sh --install-prefix=$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
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc
cd $PKG/usr/doc
ln -s ../share/doublecmd/doc $PRGNAM-$VERSION
cd -
mkdir -p $PKG/install
(
cat <<EOFB
|-----handy-ruler------------------------------------------------------|
doublecmd: doublecmd (Open source file manager)
doublecmd:
doublecmd: Double Commander is a cross platform open source file manager
doublecmd: with two panels side by side. It is inspired by Total Commander
doublecmd: and features some new ideas.
doublecmd:
doublecmd: http://doublecmd.sourceforge.net/
doublecmd:
doublecmd:
doublecmd:
doublecmd:
EOFB
) > $PKG/install/slack-desc
(
cat <<EOFC
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
EOFC
) > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
# End
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.