summaryrefslogtreecommitdiffstats
path: root/system/xfile
diff options
context:
space:
mode:
Diffstat (limited to 'system/xfile')
-rw-r--r--system/xfile/README8
-rw-r--r--system/xfile/slack-desc19
-rw-r--r--system/xfile/xfile.SlackBuild115
-rw-r--r--system/xfile/xfile.info10
4 files changed, 152 insertions, 0 deletions
diff --git a/system/xfile/README b/system/xfile/README
new file mode 100644
index 0000000000..1801170c19
--- /dev/null
+++ b/system/xfile/README
@@ -0,0 +1,8 @@
+XFile is a compact file manager for UNIX and alike systems running
+X11. It presents the file system as-is, without imaginary locations,
+trashcans etc.
+
+By default, Xft fonts will be used by copying a bundled resource
+file to enable that into app-defaults. If you wish to use Helvetica
+invoked by XLFD strings, pass DEFAULT_XFT=no variable to the script
+or override the settings in your X11 resource files.
diff --git a/system/xfile/slack-desc b/system/xfile/slack-desc
new file mode 100644
index 0000000000..96845f62ae
--- /dev/null
+++ b/system/xfile/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------------------------------------------------------|
+xfile: xfile (file manager for UNIX/X11)
+xfile:
+xfile: XFile is a compact file manager for UNIX and alike systems running
+xfile: X11. It presents the file system as-is, without imaginary locations,
+xfile: trashcans etc.
+xfile:
+xfile: Homepage: https://fastestcode.org/xfile.html
+xfile:
+xfile:
+xfile:
+xfile:
diff --git a/system/xfile/xfile.SlackBuild b/system/xfile/xfile.SlackBuild
new file mode 100644
index 0000000000..9f4c8535c4
--- /dev/null
+++ b/system/xfile/xfile.SlackBuild
@@ -0,0 +1,115 @@
+#!/bin/bash
+
+# @(#) xfile.SlackBuild 1.3@(#)
+
+# Slackware build script for xfile
+
+# Copyright 2023 pomfland
+# 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=xfile
+VERSION=${VERSION:-1.0beta_6d2dac7}
+_GITREV=6d2dac7b8f4972d11e8b7f61212c94766fb4379d
+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}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-${_GITREV}
+tar xvf $CWD/$PRGNAM-${_GITREV}.tar.gz
+cd $PRGNAM-${_GITREV}
+
+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 {} \;
+
+make CFLAGS="$SLKCFLAGS"
+
+install -Dm755 src/xfile $PKG/usr/bin/xfile
+ln -s /usr/bin/xfile $PKG/usr/bin/xfile-open
+
+install -Dm644 src/default.db $PKG/usr/share/xfile/types/default.db
+
+install -Dm644 src/xfile.1 $PKG/usr/man/man1/xfile.1
+
+for icon in src/icons/*.xpm; do
+ install -Dm664 "$icon" $PKG/usr/share/xfile/icons/$(basename "$icon")
+done
+
+install -Dm664 src/icons/README $PKG/usr/share/xfile/README.icons
+
+install -Dm664 src/xbm/cabinet.xpm $PKG/usr/share/pixmaps/xfile_48x48.xpm
+
+# construe app-defaults file
+mkdir -p $PKG/etc/X11/app-defaults
+if [ ${DEFAULT_XFT:-yes} == "yes" ]; then
+ cat src/res/{prefs,fonts-xft,accels,misc}.ad > $PKG/etc/X11/app-defaults/XFile
+else
+ cat src/res/{prefs,fonts,accels,misc}.ad > $PKG/etc/X11/app-defaults/XFile
+fi
+sed -i $PKG/etc/X11/app-defaults/XFile -e 's/^\*/XFile\*/'
+
+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
+
+if [ $(command -v pigz) ]; then
+ find $PKG/usr/man -type f -exec pigz -11 {} \;
+else
+ find $PKG/usr/man -type f -exec gzip -9 {} \;
+fi
+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 \
+ README COPYING \
+ $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/system/xfile/xfile.info b/system/xfile/xfile.info
new file mode 100644
index 0000000000..d6b687fe7d
--- /dev/null
+++ b/system/xfile/xfile.info
@@ -0,0 +1,10 @@
+PRGNAM="xfile"
+VERSION="1.0beta_6d2dac7"
+HOMEPAGE="https://fastestcode.org/xfile.html"
+DOWNLOAD="https://github.com/alx210/xfile/archive/6d2dac7b8f4972d11e8b7f61212c94766fb4379d/xfile-6d2dac7b8f4972d11e8b7f61212c94766fb4379d.tar.gz"
+MD5SUM="54842241eb2bb3887da4c1e96d74cbe3"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="pomfland"
+EMAIL="pomfland@tfwno.gf"