From e9ac7567b402520350a78254a39a37d3798fb982 Mon Sep 17 00:00:00 2001 From: Tim Dickson Date: Fri, 28 Jul 2023 20:28:23 +0900 Subject: libraries/epson-inkjet-printer-escpr2: Updated for version 1.2.2-1. Signed-off-by: Andrew Clemons --- libraries/epson-inkjet-printer-escpr2/LICENCE.html | 98 +++++++++++++++ libraries/epson-inkjet-printer-escpr2/README | 8 ++ .../epson-inkjet-printer-escpr2/README.models | 50 ++++++++ libraries/epson-inkjet-printer-escpr2/doinst.sh | 6 + .../epson-inkjet-printer-escpr2.SlackBuild | 134 +++++++++++++++++++++ .../epson-inkjet-printer-escpr2.info | 10 ++ libraries/epson-inkjet-printer-escpr2/fixrm | 30 +++++ libraries/epson-inkjet-printer-escpr2/slack-desc | 19 +++ 8 files changed, 355 insertions(+) create mode 100644 libraries/epson-inkjet-printer-escpr2/LICENCE.html create mode 100644 libraries/epson-inkjet-printer-escpr2/README create mode 100644 libraries/epson-inkjet-printer-escpr2/README.models create mode 100644 libraries/epson-inkjet-printer-escpr2/doinst.sh create mode 100644 libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.SlackBuild create mode 100644 libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.info create mode 100644 libraries/epson-inkjet-printer-escpr2/fixrm create mode 100644 libraries/epson-inkjet-printer-escpr2/slack-desc diff --git a/libraries/epson-inkjet-printer-escpr2/LICENCE.html b/libraries/epson-inkjet-printer-escpr2/LICENCE.html new file mode 100644 index 0000000000..9db25aedc9 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/LICENCE.html @@ -0,0 +1,98 @@ + + + + + +SEIKO EPSON CORPORATION
+SOFTWARE LICENSE AGREEMENT FOR LINUX
+
+IMPORTANT! READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY. The computer + software product, fontware, typefaces and/or data, including any +accompanying explanatory written materials (the "Software") should only +be installed or used by the Licensee ("you") on the condition you agree +with SEIKO EPSON CORPORATION ("EPSON") to the terms and conditions set +forth in this Agreement. By installing or using the Software, you are +representing to agree all the terms and conditions set forth in this +Agreement. You should read this Agreement carefully before installing +or using the Software. If you do not agree with the terms and +conditions of this Agreement, you are not permitted to install or use +the Software.
+
+ +
+ +[Inkjet Printer]
+1.ESC/P + + +2.ESC/P-R + + +3.PIPS(Photo Image Print System) + + +
+ +[Laser Printer]
+1.Postscript Printer Description (PPD) file for EPSON Printer + +
    +
  • Please read the license at the top of the EPSON PPD file carefully.
  • +
+ +2.GS-LPD (Ghostscript Laser Printer Driver for Linux) + + + +3.Laser Printer Filter for Linux + + +4.Photo Image Print System Plus for Linux + + +
+ +[Scanner]
+1.Image Scan! for Linux + + +2.Image Scan v3 + + + +
+
+EPSON EULA EN 11/05/2012 +
+
+
+ + + + \ No newline at end of file diff --git a/libraries/epson-inkjet-printer-escpr2/README b/libraries/epson-inkjet-printer-escpr2/README new file mode 100644 index 0000000000..ac28a3caac --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/README @@ -0,0 +1,8 @@ +This is a generic driver for many Epson inkjet printers. +This supports printers using escp protocol variant r2 (escpr2). +If your printer is not listed, try the escpr package instead. + +See README.models for supported printer models. + +don't forget to restart cups after installing/updating this driver +You will have to print a page in order to get an acurate ink status. diff --git a/libraries/epson-inkjet-printer-escpr2/README.models b/libraries/epson-inkjet-printer-escpr2/README.models new file mode 100644 index 0000000000..6a93c06132 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/README.models @@ -0,0 +1,50 @@ +EC-4020 Series, EC-4030 Series, EC-4040 Series, EC-C7000 Series +EP-50V Series, EP-879A Series, EP-880A Series, EP-881A Series +EP-882A Series, EP-883A Series, EP-884A Series, EP-885A Series +EP-982A3 Series, ET-15000 Series, ET-16150 Series, ET-16600 Series +ET-16650 Series, ET-16680 Series, ET-18100 Series, ET-2830 Series +ET-2840 Series, ET-3700 Series, ET-3710 Series, ET-3750 Series +ET-3760 Series, ET-3800 Series, ET-3830 Series, ET-3840 Series +ET-3850 Series, ET-4750 Series, ET-4760 Series, ET-4810 Series +ET-4850 Series, ET-5150 Series, ET-5170 Series, ET-5180 Series +ET-5800 Series, ET-5850 Series, ET-5880 Series, ET-8500 Series +ET-8550 Series, ET-8700 Series, ET-M1140 Series, ET-M1170 Series +ET-M1180 Series, ET-M16600 Series, ET-M16680 Series, ET-M2140 Series +ET-M2170 Series, ET-M3140 Series, ET-M3170 Series, ET-M3180 Series +EW-M530F Series, EW-M5610FT Series, EW-M630T Series, EW-M634T Series +EW-M670FT Series, EW-M674FT Series, EW-M752T Series, EW-M754T Series +EW-M873T Series, EW-M973A3T Series, L11160 Series, L14150 Series +L15150 Series, L15160 Series, L15180 Series, L18050 Series +L3550 Series, L3560 Series, L5590 Series, L6160 Series, L6170 Series +L6190 Series, L6260 Series, L6270 Series, L6290 Series, L6460 Series +L6490 Series, L6550 Series, L6570 Series, L6580 Series, L8050 Series +L8160 Series, L8180 Series, M1140 Series, M1170 Series, M1180 Series +M15140 Series, M15180 Series, M2140 Series, M2170 Series, M3140 Series +M3170 Series, M3180 Series, PM-520 Series, PX-M270FT Series +PX-M270T Series, PX-M380F, PX-M381FL, PX-M5080F Series +PX-M5081F Series, PX-M6010F Series, PX-M6011F Series, PX-M6711FT Series +PX-M6712FT Series, PX-M680F Series, PX-M7070FX, PX-M7080FX, PX-M7090FX +PX-M7110F, PX-M7110FP, PX-M730F Series, PX-M780F Series +PX-M781F Series, PX-M791FT Series, PX-M880FX, PX-M884F, PX-M885F +PX-M886FL, PX-M887F, PX-S270T Series, PX-S380, PX-S381L +PX-S5010 Series, PX-S5080 Series, PX-S6010 Series, PX-S6710T Series +PX-S7070X, PX-S7090X, PX-S7110, PX-S7110P, PX-S730 Series, PX-S880X +PX-S884, PX-S885, PX-S887, ST-3000 Series, ST-4000 Series +ST-C4100 Series, ST-C8000 Series, ST-C8090 Series, ST-M1000 Series +ST-M3000 Series, WF-2860 Series, WF-2880 Series, WF-2960 Series +WF-3720 Series, WF-3730 Series, WF-3820 Series, WF-4720 Series +WF-4730 Series, WF-4740 Series, WF-4820 Series, WF-4830 Series +WF-7210 Series, WF-7310 Series, WF-7710 Series, WF-7720 Series +WF-7820 Series, WF-7830 Series, WF-7840 Series, WF-C4310 Series +WF-C4810 Series, WF-C5210 Series, WF-C5290 Series, WF-C5290BA +WF-C5290BAM, WF-C529R Series, WF-C529RB, WF-C529RBAM, WF-C5310 Series +WF-C5390 Series, WF-C5390BAM, WF-C5710 Series, WF-C5790 Series +WF-C5790BA, WF-C5790BAM, WF-C579R Series, WF-C579RB, WF-C579RBAM +WF-C5810 Series, WF-C5890 Series, WF-C5890BAM, WF-C8190 Series +WF-C8190B, WF-C8610 Series, WF-C8690 Series, WF-C8690B, WF-C869R Series +WF-C878R Series, WF-C878RB, WF-C879R Series, WF-C879RB, WF-C879RBAM +WF-M4119 Series, WF-M4619 Series, WF-M5298 Series, WF-M5299 Series +WF-M5299BAM, WF-M5799 Series, WF-M5799BAM, XP-15000 Series +XP-5100 Series, XP-5150 Series, XP-5200 Series, XP-6000 Series +XP-6100 Series, XP-8500 Series, XP-8600 Series, XP-8700 Series +XP-970 Series diff --git a/libraries/epson-inkjet-printer-escpr2/doinst.sh b/libraries/epson-inkjet-printer-escpr2/doinst.sh new file mode 100644 index 0000000000..9cf806b007 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/doinst.sh @@ -0,0 +1,6 @@ +echo +echo "********************* NOTICE **********************" +echo "Cups needs restarting for new drivers to be usable:" +echo "/etc/rc.d/rc.cups restart" +echo "***************************************************" +echo diff --git a/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.SlackBuild b/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.SlackBuild new file mode 100644 index 0000000000..5df94bfce3 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.SlackBuild @@ -0,0 +1,134 @@ +#!/bin/bash + +# Slackware build script for escpr2 + +# Copyright 2018-2023 Tim Dickson +# All rights reserved. +# +# thanks to Ruben Schuller for escpr slack build, which this is +# heavily based on. +# +# 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. + +#note to self. paste list of supported models into first line of empty README.models +#file. run sh ./fixrm to spread the model list evenly over as many lines as needed +#also upload source to slackbuildsdirectlinks, as epson keeps changing the url +#of their own download link. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=epson-inkjet-printer-escpr2 +VERSION=${VERSION:-1.2.2} +EXTRABIT=1 +TARNAM=$PRGNAM-$VERSION-$EXTRABIT.tar.gz +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} +EXTRACTTMP=${TMP}/epson-inkjet-printer-escpr2-src +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 $EXTRACTTMP +#lets get the source tarball from the rpm and clean up the bits we don't need +cd $EXTRACTTMP +rpm2tgz $CWD/$PRGNAM-$VERSION-$EXTRABIT.src.rpm +tar -xzf $PRGNAM-$VERSION-$EXTRABIT.src.tgz +#fix for dave and others whose rpm2tgz behaves differently. :-) +if [ -e $PRGNAM-$VERSION-$EXTRABIT/$PRGNAM-$VERSION-$EXTRABIT.tar.gz ]; then + cp $PRGNAM-$VERSION-$EXTRABIT/$PRGNAM-$VERSION-$EXTRABIT.tar.gz ./ +fi +rm -f $PRGNAM-$VERSION-$EXTRABIT.src.tgz +rm -rf $PRGNAM-$VERSION-$EXTRABIT +rm -f lsb-rpm.spec +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $EXTRACTTMP/$TARNAM +#lets remove our temp extraction directory +rm -rf $EXTRACTTMP +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +#fix ownership of licence file. +cp -a $CWD/LICENCE.html COPYING COPYING.EPSON COPYING.LIB README AUTHORS ChangeLog NEWS $PKG/usr/doc/$PRGNAM-$VERSION +chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/LICENCE.html +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +rm -f $PKG/usr/lib*/*.la + +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/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.info b/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.info new file mode 100644 index 0000000000..db5048f00f --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/epson-inkjet-printer-escpr2.info @@ -0,0 +1,10 @@ +PRGNAM="epson-inkjet-printer-escpr2" +VERSION="1.2.2-1" +HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/" +DOWNLOAD="https://sourceforge.net/projects/slackbuildsdirectlinks/files/epson-printer/epson-inkjet-printer-escpr2-1.2.2-1.src.rpm" +MD5SUM="49f2f58b7e0b0d6fd3820d29e5f213a2" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Tim Dickson" +EMAIL="dickson.tim@googlemail.com" diff --git a/libraries/epson-inkjet-printer-escpr2/fixrm b/libraries/epson-inkjet-printer-escpr2/fixrm new file mode 100644 index 0000000000..e1c5c21315 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/fixrm @@ -0,0 +1,30 @@ +#!/bin/sh +#fixrm is a little script to limit the items on each line so the line +#is less than 72 characters. it is used by the maintainer when creating +#the README.models file for this package, and for the epson-inkjet-printer-escpr2 +#slackbuild. It takes the list posted on a single long first line, and spreads +#them over as many lines as needed. +# +#paste the list from the epson website into an empty README.models and run this +#script in the same directory + +FNAME="README.models" +MAXLEN=${MAXLEN:-72} +#make sure MAXLEN is a integer bigger than 39 +MAXLEN=`echo $MAXLEN|awk '($1<40) {print "40"} (int($1)>39) {print int($1) }'` +if [ -e $FNAME ]&&[ `cat $FNAME|head -n1|awk '{print length($0)}'` -gt $MAXLEN ]; then + #only do something if the file exists, and thefirst line is longer than it + #should be. + TMPFILE=rmtmp + mv README.models $TMPFILE + cat $TMPFILE|awk -v mlen="$MAXLEN" -F', ' 'BEGIN{curline="";mlen=mlen-2} +{ for (i=1;i<=NF; i++) + { { n=0; l=length(curline)+length($i) } + if (i==1) {curline=$i; n=1} + if (l1) { curline=curline ", " $i; n=1} + if (n==0) {print curline; curline=$i } + } + if (length(curline)>0) {print curline; curline=""} +}'>README.models + rm $TMPFILE +fi diff --git a/libraries/epson-inkjet-printer-escpr2/slack-desc b/libraries/epson-inkjet-printer-escpr2/slack-desc new file mode 100644 index 0000000000..c98234c9d9 --- /dev/null +++ b/libraries/epson-inkjet-printer-escpr2/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------------------------------------------------------| +epson-inkjet-printer-escpr2: epson-inkjet-printer-escpr2 (epson generic printer driver) +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: Printer driver for many epson inkjet printers. +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: +epson-inkjet-printer-escpr2: -- cgit v1.2.3-65-gdbad