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.
# 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------------------------------------------------------|
terminus-ttf: Terminus TTF is a TrueType version of Terminus Font.
terminus-ttf:
terminus-ttf: Terminus TTF is a TrueType version of Terminus Font, a fixed-width
terminus-ttf: bitmap font optimized for long work with computers.
terminus-ttf:
terminus-ttf: Homepage: https://files.ax86.net/terminus-ttf/
terminus-ttf:
terminus-ttf:
terminus-ttf:
terminus-ttf:
terminus-ttf:
terminus-ttf.SlackBuild:
Code:
#!/bin/sh
# Copyright 2018 Aleksandr "Ne01eX" Sayfulin, Ural, Russian Federation.
# 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.
PKGNAM=terminus-ttf
VERSION=${VERSION:-$(echo $PKGNAM-*.zip* | rev | cut -f 2- -d . | cut -f 1 -d - | rev)}
ARCH=noarch
BUILD=${BUILD:-rtk01}
CWD=$(pwd)
TMP=${TMP:-/tmp}
OUTPUT=${OUTPUT:-/tmp}
PKG=$TMP/package-$PKGNAM
if [ ! -d "$TMP" ]; then
mkdir -p $TMP
fi
if [ ! -d "$OUTPUT" ]; then
mkdir -p $OUTPUT
fi
rm -rf $PKG
mkdir -p $PKG
cd $TMP
rm -rf $PKGNAM-$VERSION
unzip $CWD/$PKGNAM-$VERSION.zip || exit 1
cd $PKGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p $PKG/usr/share/fonts/TTF
cp -a *.ttf $PKG/usr/share/fonts/TTF
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION
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/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
# Cleanup if enabled
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/$PKGNAM-$VERSION
rm -rf $PKG
fi
doinst.sh:
Code:
# Update the X font indexes:
if [ -x /usr/bin/mkfontdir ]; then
( cd /usr/share/fonts/TTF
mkfontscale .
mkfontdir .
)
fi
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi
This package currently don't present into SlackBuilds.org
Here's an initial attempt at an updated vulkan-sdk 1.1 SlackBuild. I haven't tried installing it and building stuff against it yet, but it does build a package that has the right files and that otherwise looks right.
fetch-sources.sh:
Code:
#!/bin/sh
# Copyright 2017 Patrick J. Volkerding, Sebeka, Minnesota, USA
# 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.
# Call this script with the version of the Vulkan-LoaderAndValidationLayers-sdk
# that you would like to fetch the sources for. This will fetch the SDK from
# github, and then look at the revisions listed in the external_revisions
# directory to fetch the proper glslang, SPIRV-Headers, and SPIRV-Tools.
#
# Example: VERSION=1.0.70.0 ./fetch-sources.sh
VERSION=${VERSION:-1.1.70.0}
# Remove existing sources:
rm -rf Vulkan-LoaderAndValidationLayers-sdk* glslang-* SPIRV-Headers-* SPIRV-Tools-*
# Fetch SDK:
lftpget https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${VERSION}/Vulkan-LoaderAndValidationLayers-sdk-${VERSION}.tar.gz
GLSLANG_REVISION=$(tar xOf Vulkan-LoaderAndValidationLayers-sdk-${VERSION}.tar.gz Vulkan-LoaderAndValidationLayers-sdk-${VERSION}/external_revisions/glslang_revision)
git clone https://github.com/KhronosGroup/glslang.git glslang-$GLSLANG_REVISION
cd glslang-$GLSLANG_REVISION
git checkout $GLSLANG_REVISION
SPIRV_TOOLS_REVISION=$(
python3 - << EOF
import json
with open('known_good.json') as f:
known_good = json.load(f)
commits = known_good['commits']
print(commits[0]['commit'])
EOF
)
SPIRV_HEADERS_REVISION=$(
python3 - << EOF
import json
with open('known_good.json') as f:
known_good = json.load(f)
commits = known_good['commits']
print(commits[1]['commit'])
EOF
)
cd ..
tar -cvvf glslang-${GLSLANG_REVISION}.tar glslang-${GLSLANG_REVISION}
xz glslang-${GLSLANG_REVISION}.tar
rm -rf glslang-${GLSLANG_REVISION}
git clone https://github.com/KhronosGroup/SPIRV-Headers.git SPIRV-Headers-${SPIRV_HEADERS_REVISION}
cd SPIRV-Headers-${SPIRV_HEADERS_REVISION}
git checkout ${SPIRV_HEADERS_REVISION}
cd ..
tar -cvvf SPIRV-Headers-${SPIRV_HEADERS_REVISION}.tar SPIRV-Headers-${SPIRV_HEADERS_REVISION}
rm -rf SPIRV-Headers-${SPIRV_HEADERS_REVISION}
xz SPIRV-Headers-${SPIRV_HEADERS_REVISION}.tar
git clone https://github.com/KhronosGroup/SPIRV-Tools.git SPIRV-Tools-${SPIRV_TOOLS_REVISION}
cd SPIRV-Tools-${SPIRV_TOOLS_REVISION}
git checkout ${SPIRV_TOOLS_REVISION}
cd ..
tar -cvvf SPIRV-Tools-${SPIRV_TOOLS_REVISION}.tar SPIRV-Tools-${SPIRV_TOOLS_REVISION}
rm -rf SPIRV-Tools-${SPIRV_TOOLS_REVISION}
xz SPIRV-Tools-${SPIRV_TOOLS_REVISION}.tar
# List URLs in vulkan-sdk.url:
echo "https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/archive/sdk-${VERSION}/Vulkan-LoaderAndValidationLayers-sdk-${VERSION}.tar.gz" > vulkan-sdk.url
echo "https://github.com/KhronosGroup/glslang/archive/${GLSLANG_REVISION}/glslang-${GLSLANG_REVISION}.tar.gz" >> vulkan-sdk.url
echo "https://github.com/KhronosGroup/SPIRV-Headers/archive/${SPIRV_HEADERS_REVISION}/SPIRV-Headers-${SPIRV_HEADERS_REVISION}.tar.gz" >> vulkan-sdk.url
echo "https://github.com/KhronosGroup/SPIRV-Tools/archive/${SPIRV_TOOLS_REVISION}/SPIRV-Tools-${SPIRV_TOOLS_REVISION}.tar.gz" >> vulkan-sdk.url
# Fix timestamps to be correct:
for file in *.tar.xz ; do
TIMESTAMP="$(tar tvf $file | head -1 | cut -b 32-47)"
touch -d "$TIMESTAMP" $file
done
vulkan-sdk.SlackBuild:
Code:
#!/bin/sh
# Slackware build script for vulkan-sdk
# Copyright 2016, 2017 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2016, 2017 Patrick J. Volkerding, Sebeka, MN, USA
# 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)
PKGNAM=vulkan-sdk
VERSION=${VERSION:-$(echo Vulkan-LoaderAndValidationLayers-sdk-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:--j7}
# Automatically determine the architecture we're building on:
MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
case "$MARCH" in
i?86) export ARCH=i586 ;;
armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$MARCH ;;
esac
fi
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-vulkan-sdk
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Vulkan-LoaderAndValidationLayers-sdk-$VERSION
tar xvf $CWD/Vulkan-LoaderAndValidationLayers-sdk-$VERSION.tar.?z* || exit 1
cd Vulkan-LoaderAndValidationLayers-sdk-$VERSION || exit 1
GLSLANG_VERSION=$(cat external_revisions/glslang_revision | head -n 1)
SPIRV_HEADERS_VERSION=$(basename SPIRV-Headers-* .tar.xz | rev | cut -d - -f 1 | rev)
SPIRV_TOOLS_VERSION=$(basename SPIRV-Tools-* .tar.xz | rev | cut -d - -f 1 | rev)
mkdir external
cd external
tar xf $CWD/glslang-${GLSLANG_VERSION}.tar.?z*
mv glslang-${GLSLANG_VERSION} glslang
cd glslang/External
tar xf $CWD/SPIRV-Tools-${SPIRV_TOOLS_VERSION}.tar.?z*
mv SPIRV-Tools-${SPIRV_TOOLS_VERSION} spirv-tools
mkdir -p spirv-tools/external
cd spirv-tools/external
tar xvf $CWD/SPIRV-Headers-${SPIRV_HEADERS_VERSION}.tar.?z*
mv SPIRV-Headers-${SPIRV_HEADERS_VERSION} spirv-headers
cd $TMP/Vulkan-LoaderAndValidationLayers-sdk-$VERSION
# chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p external/{glslang,spirv-tools}/build
mkdir -p build
mkdir -p build-demos
# Fix LIBDIRSUFFIX
for i in $(find external -name CMakeLists.txt); do
sed -i "s|DESTINATION lib|DESTINATION \${CMAKE_INSTALL_LIBDIR}|" "$i"
done
cd external/glslang/build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release \
..
make $NUMJOBS VERBOSE=1 || make || exit 1
make install DESTDIR=$PKG || exit 1
cd -
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_DATADIR=/share \
-DCMAKE_SKIP_RPATH=True \
-DBUILD_TESTS=Off \
-DBUILD_DEMOS=On \
-DBUILD_WSI_XLIB_SUPPORT=On \
-DBUILD_WSI_XCB_SUPPORT=On \
-DBUILD_WSI_WAYLAND_SUPPORT=Off \
-DBUILD_WSI_MIR_SUPPORT=Off \
-DCMAKE_BUILD_TYPE=Release \
-DGLSLANG_VALIDATOR=../external/glslang/build/StandAlone/glslangValidator \
..
make $NUMJOBS VERBOSE=1 || make || exit 1
make install DESTDIR=$PKG || exit 1
cd -
mkdir -p $PKG/usr/share/vulkan/{explicit,implicit}_layer.d
mv $PKG/etc/vulkan/explicit_layer.d/*.json $PKG/usr/share/vulkan/explicit_layer.d/
mv $PKG/usr/bin/smoketest $PKG/usr/bin/vulkan-smoketest
# Use headers from spirv-headers as they are newer than the ones installed by glslang
for i in spirv.h spirv.hpp spirv.hpp11; do
install -m 0644 external/spirv-tools/external/spirv-headers/include/spirv/1.2/$i \
$PKG/usr/include/SPIRV/
done
ln -s /usr/include/SPIRV $PKG/usr/include/spirv
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/usr/doc/$PKGNAM-$VERSION
cp -a *.md LICENSE.txt loader/LoaderAndLayerInterface.md \
$PKG/usr/doc/$PKGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
Do you mean that the ttf version also should be included in the installer? To be useful that'd need either to ship X or a framebuffer like fbterm. I did the latter in Slint 14.1 but that needs to include additional stuff, not only a font. Also they themselves say that the ttf version one is ugly...
Do you mean that the ttf version also should be included in the installer? To be useful that'd need either to ship X or a framebuffer like fbterm. I did the latter in Slint 14.1 but that needs to include additional stuff, not only a font. Also they themselves say that the ttf version one is ugly...
Not TTF! I meant the original terminus font! It is still not in the standard supply of Slackware installer.
Before talking with enthusiasm about things like x264 and x265, you considered a bit the PATENTS issues?
Of course, I heard even myself that in Russian is no such word for "Copyright", BUT bear in mind that the Slackware, Inc. is a company based in Minnesota, The Capitalist America.
Before talking with enthusiasm about things like x264 and x265, you considered a bit the PATENTS issues?
Of course, I heard even myself that in Russian is no such word for "Copyright", BUT bear in mind that the Slackware, Inc. is a company based in Minnesota, The Capitalist America.
1. Copyright ≠ (is not equal) patents. Russia recognizes copyright and protects the rights of any authors.
2. Russia does not recognize the existence of patents for software algorithms. NEVER. :-)
3. Software patents — Obstacles to software development. See this article by Richard Stallman for more details. Also, good idea of look this page.
4. Welcome to Russia. :-)
P.S. I realized why Slackware still does not have some codecs. Discussion closed. Request is nulled. :-)
1. Need to update terminus fonts to 4.46
2. Please apply my patch to setconsolefont (in attachment). This patch updates the list of console fonts available in Slackware Linux. :-)
I apologize for my poor English and for the incorrect wording of the previous request for terminus-font.
Last edited by Ne01eX; 03-20-2018 at 04:35 PM.
Reason: Addition.
2. Please apply my patch to setconsolefont (in attachment). This patch updates the list of console fonts available in Slackware Linux. :-)
I'd rather suggest to get rid of setconsolefont and just set a terminus font by default.
I attach the script we source in the Slint installer in other scripts for several settings, see in it the functions SeTFonts and PutFonts, however as the Slackware installer is only in English it can be simpler: just use ter-120b if there is no framebuffer, else ter-116b and don't bother the user with a choice between a zillion fonts.
/etc/rc.d/rc.font can always be edited after installation to change the font and/or its size.
I'm inclined to agree with Didier. Most of the consolefonts are unusable. There really doesn't seem much point in giving people the option of choosing them when no one will want to.
Personally, I like a slightly larger font so I use ter-v22b which gives me a nicely sized 124x34 console on a 1366x768 laptop screen.
I use ter-v* because it provides support for more glyphs than ter-1*
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.