diff options
-rw-r--r-- | system/foo2zjs/README | 108 | ||||
-rw-r--r-- | system/foo2zjs/foo2zjs.SlackBuild | 133 | ||||
-rw-r--r-- | system/foo2zjs/foo2zjs.info | 10 | ||||
-rw-r--r-- | system/foo2zjs/slack-desc | 19 |
4 files changed, 270 insertions, 0 deletions
diff --git a/system/foo2zjs/README b/system/foo2zjs/README new file mode 100644 index 0000000000000..9e9e789cbf655 --- /dev/null +++ b/system/foo2zjs/README @@ -0,0 +1,108 @@ +This is the slackbuild for foo2zjs + +This script builds all the needed software but ICM profiles +must be downloaded for proper function. + +By default this download isn't enabled. If you want it you must +edit the SlackBuild and set ICM_DOWNLOAD=yes at line 32 + + + With foo2zjs, you can print to some HP and Minolta/QMS ZjStream + printers, such as these: + + - Konica Minolta magicolor 2430 DL B/W and color - + Minolta/QMS 2300 DL B/W and color - Minolta/QMS 2200 + DL B/W and color - HP LaserJet P2035 B/W - + HP LaserJet M1319 MFP B/W - HP LaserJet Pro P1606dn + B/W - HP LaserJet Pro P1566 B/W - HP LaserJet Pro P1102 + B/W - HP LaserJet Pro CP1025nw B/W and color - HP LaserJet + 1022 B/W - HP LaserJet 1020 B/W - HP + LaserJet 1018 B/W - HP LaserJet 1005 B/W - + HP LaserJet 1000 B/W + + FOO2HP ------ foo2hp converts pbm (B/W) images and N-bit-per-pixel + cmyk images (both produced by ghostscript) to Zenographics + ZJ-stream format. There is some information about the ZJS format + at http://ddk.zeno.com. + + With foo2hp, you can print to some HP ZjStream printers, such + as these: + + - HP Color LaserJet CP1215 B/W and color - HP Color LaserJet + 1600 B/W and color - HP Color LaserJet 2600n B/W + and color + + FOO2LAVA -------- foo2lava converts Ghostscript pbmraw, bitcmyk, + or pksmraw output for- mats to monochrome or color LAVAFLOW + or OPL streams, for driving the Konica Minolta magicolor 2530 + DL network color laser printer, the Kon- ica Minolta magicolor + 2480/2480 MF AIO printer, and other Zenographics- based LAVAFLOW + printers. + + - Konica Minolta magicolor 2530 DL B/W and color - Konica + Minolta magicolor 2490 MF B/W and color - Xerox Phaser 6115MFP + B/W and color - Konica Minolta magicolor 2480 MF B/W and color - + Konica Minolta magicolor 1690MF B/W and color - Konica Minolta + magicolor 1680MF B/W and color - Konica Minolta magicolor + 1600W B/W and color + + FOO2OAK ------- foo2oak converts pbm (B/W) images and + 1-bit-per-pixel cmyk images (both produced by ghostscript) to + Oak Technology (now Zoran) OAKT format. + + With foo2oak, you can print to the HP LaserJet 1500 and possibly + other OAKT protocol printers, such as these: + + - HP LaserJet 1500 B/W and color, but only 1-bit per pixel - + Kyocera KM-2035 B/W - Kyocera KM-1635 B/W + + FOO2QPDL -------- foo2qpdl converts Ghostscript pbmraw, bitcmyk, + or pksmraw output formats to monochrome or color QPDL streams, + for driving the Samsung CLP-300, CLX-2160, CLP-600, CLX-3160, + CLP-610 and the Xerox Phaser 6110 QPDL printers. + + - Samsung CLP-300 B/W and color - Samsung CLP-315 B/W and + color - Samsung CLP-325 B/W and color - Samsung CLP-365 B/W + and color - Samsung CLP-600 B/W and color - Samsung CLP-610 + B/W and color - Samsung CLP-2160 B/W and color - Samsung + CLP-3160 B/W and color - Samsung CLP-3175 B/W and color - + Xerox Phaser 6110 B/W and color - Xerox Phaser 6110MFP B/W + and color + + FOO2SLX ------- foo2slx converts Ghostscript pbmraw, bitcmyk, + or pksmraw output formats to monochrome or color SLX streams, for + driving the Lexmark C500 net- work color laser printer and other + SLZ-based printers. The SLX stream is a variant of ZjStream + produced by Software Imaging K.K + + - Lexmark C500n B/W and color + + FOO2XQX ------- foo2xqx converts Ghostscript pbmraw to + monochrome XQX streams, for driving the HP LaserJet M1005 MFP + and other XQX-based printers + + - HP LaserJet M1005 MFP - HP LaserJet M1120 MFP - HP LaserJet + P1005 - HP LaserJet P1006 - HP LaserJet P1007 - HP LaserJet + P1008 - HP LaserJet P1505/P1505n - HP LaserJet P2014/P2014n - + HP LaserJet Pro M1212nf MFP + + FOO2HIPERC ---------- foo2hiperc converts Ghostscript pbmraw, + bitcmyk, or pksmraw output for- mats to monochrome or color + HIPERC streams, for driving the Oki C3200, C3300n, C3400n, C5100n, + and the C5500n HIPERC printers. + + - Oki C301dn - Oki C310dn - Oki C511dn - Oki C810dn - Oki + C3100n/C3200n - Oki C3300n/C3400n - Oki C3530n MFP - Oki + C5100n/C5150n/C5200n - Oki C5500n/C5600n/C5800n + + FOO2HBPL2 --------- foo2hbpl2 converts Ghostscript pbmraw, bitcmyk, + or pksmraw output for‐ mats to monochrome or color HBPL + version 2 streams. + + - Dell 1355 Multifunction Color Printer - Dell C1765 Multifunction + Color Printer - Epson AcuLaser CX17NF - Epson AcuLaser M1400 - + Fuji Xerox DocuPrint CM205 Multifunction Color Printer - Fuji + Xerox DocuPrint CM215 Multifunction Color Printer - Fuji Xerox + DocuPrint M215 - Fuji Xerox DocuPrint P205 - Xerox WorkCentre + 3045 Multifunction Monochrome Printer - Xerox WorkCentre 6015 + Multifunction Color Printer diff --git a/system/foo2zjs/foo2zjs.SlackBuild b/system/foo2zjs/foo2zjs.SlackBuild new file mode 100644 index 0000000000000..3cdcd5c602647 --- /dev/null +++ b/system/foo2zjs/foo2zjs.SlackBuild @@ -0,0 +1,133 @@ +#!/bin/bash + +# Slackware build script for foo2js + +# Copyright 2023 juanma1980 <juanma1980@disroot.org> +# 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=foo2zjs +VERSION=${VERSION:-20200610} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} +ICM_DOWNLOAD="no" + +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" +elif [ "$ARCH" = "aarch64" ]; 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 +tar xvf $CWD/$PRGNAM.tar.gz +cd $PRGNAM +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" +make +if [ "$ICM_DOWNLOAD" = "yes" ]; then + ./getweb all +fi +make install DESTDIR=$PKG + +# Don't ship .la files: +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 + +# Manually move man dir +mv $PKG/usr/share/man $PKG/usr/man +rm $PKG/usr/man/man1/foo2zjs-icc2ps.1 #empty man file +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +# Also, include the SlackBuild script in the documentation directory +mkdir -p $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 +#cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG + +# make all symbolic links relative +# (code from https://unix.stackexchange.com/a/100955/16829) +for link in $(find . -lname '/*'); do + target=$(readlink "$link") + link=${link#./} + echo "READ $link" + root=$(echo $link | sed -E 's|[^/](.[^/]*)|..|g'); root=${root#/}; root=${root%..} + echo "AS $root" + echo "LN $root${target#/}" + rm "$link" + echo $PWD + cd $(dirname link) + #The install creates a hard link with wrong path + #Dirty fix + target=${target/$PWD/} + ln -s "$root${target#/}" "$link" + cd $OLDPWD +done +rm -rf usr/share/doc +rm -rf usr/share/man + +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/foo2zjs/foo2zjs.info b/system/foo2zjs/foo2zjs.info new file mode 100644 index 0000000000000..cd57f25d9d8f2 --- /dev/null +++ b/system/foo2zjs/foo2zjs.info @@ -0,0 +1,10 @@ +PRGNAM="foo2zjs" +VERSION="20200610" +HOMEPAGE="https://foo2zjs.linkevich.net/" +DOWNLOAD="https://foo2zjs.linkevich.net/foo2zjs/foo2zjs.tar.gz" +MD5SUM="0da085f5e8dd871a63c5c767d3230acb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="juanma1980" +EMAIL="juanma1980@disroot.org" diff --git a/system/foo2zjs/slack-desc b/system/foo2zjs/slack-desc new file mode 100644 index 0000000000000..830bf5e76f665 --- /dev/null +++ b/system/foo2zjs/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------------------------------------------------------| +foo2zjs: foo2zjs (convert B/W to ZJ format) +foo2zjs: +foo2zjs: foo2zjs converts pbm (B/W) images and 1-bit-per-pixel cmyk images +foo2zjs: both produced by ghostscript) to Zenographics ZJ-stream format. +foo2zjs: +foo2zjs: With foo2zjs, you can print to some: +foo2zjs: * HP or Minolta/QMS ZjStream printers +foo2zjs: * Kyocera +foo2zjs: * Samsung +foo2zjs: * OKI +foo2zjs: * Other (see README for supported printers and models) |