summaryrefslogtreecommitdiff
path: root/system/pcf2bdf
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-04-02 00:10:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-02 00:10:29 +0700
commit7f6b42979cd5b72351233eaf5722b13e744be922 (patch)
tree489f961a17d59b31527ab25db42a06fe76959864 /system/pcf2bdf
parent4510e38975f8602e5e03502be518b9402837cbec (diff)
downloadslackbuilds-7f6b42979cd5b72351233eaf5722b13e744be922.tar.gz
system/pcf2bdf: Added (convert X fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pcf2bdf')
-rw-r--r--system/pcf2bdf/README5
-rw-r--r--system/pcf2bdf/pcf2bdf.SlackBuild72
-rw-r--r--system/pcf2bdf/pcf2bdf.info10
-rw-r--r--system/pcf2bdf/slack-desc19
4 files changed, 106 insertions, 0 deletions
diff --git a/system/pcf2bdf/README b/system/pcf2bdf/README
new file mode 100644
index 0000000000..d7871d3a39
--- /dev/null
+++ b/system/pcf2bdf/README
@@ -0,0 +1,5 @@
+pcf2bdf (convert X fonts from PCF to BDF)
+
+Pcf2bdf is a font de-compiler. It converts X fonts from Portable Compiled
+Format (PCF) to Bitmap Distribution Format (BDF). It can also accept a
+compressed/gzipped PCF file as input.
diff --git a/system/pcf2bdf/pcf2bdf.SlackBuild b/system/pcf2bdf/pcf2bdf.SlackBuild
new file mode 100644
index 0000000000..7dc231f4a0
--- /dev/null
+++ b/system/pcf2bdf/pcf2bdf.SlackBuild
@@ -0,0 +1,72 @@
+#!/bin/sh
+
+# Slackware build script for pcf2bdf
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=pcf2bdf
+VERSION=${VERSION:-1.06}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+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 /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+make -f Makefile.gcc all install \
+ CXXFLAGS="$SLKCFLAGS" \
+ PREFIX=/usr \
+ MANPATH=/usr/man/man1 \
+ INSTALL_PROGRAM="install -s" \
+ DESTDIR=$PKG
+
+gzip $PKG/usr/man/man?/*.?
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.txt $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:-tgz}
diff --git a/system/pcf2bdf/pcf2bdf.info b/system/pcf2bdf/pcf2bdf.info
new file mode 100644
index 0000000000..43243ad4b4
--- /dev/null
+++ b/system/pcf2bdf/pcf2bdf.info
@@ -0,0 +1,10 @@
+PRGNAM="pcf2bdf"
+VERSION="1.06"
+HOMEPAGE="https://github.com/ganaware/pcf2bdf/"
+DOWNLOAD="https://github.com/ganaware/pcf2bdf/archive/1.06/pcf2bdf-1.06.tar.gz"
+MD5SUM="7cbdf32d1df7b084dc9549c8ba5f916c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/system/pcf2bdf/slack-desc b/system/pcf2bdf/slack-desc
new file mode 100644
index 0000000000..0547163b9d
--- /dev/null
+++ b/system/pcf2bdf/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------------------------------------------------------|
+pcf2bdf: pcf2bdf (convert X fonts from PCF to BDF)
+pcf2bdf:
+pcf2bdf: Pcf2bdf is a font de-compiler. It converts X fonts from Portable
+pcf2bdf: Compiled Format (PCF) to Bitmap Distribution Format (BDF). It can
+pcf2bdf: also accept a compressed/gzipped PCF file as input.
+pcf2bdf:
+pcf2bdf:
+pcf2bdf:
+pcf2bdf:
+pcf2bdf:
+pcf2bdf: