You are not logged in.

#1 2008-07-05 16:23:40

webjdm
Member
Registered: 2008-07-05
Posts: 17

[PKGBUILD] Lexmark Z series Printer Driver for CUPS

Hi everybody, this my first package that runs some Lexmark printers. But I am not sure if "depends" lines are good... yikes
It works on 64-bit system. My lexmark x1180 works big_smile

if [ "$CARCH" = "x86_64" ]; then
    depends=('cups' 'lib32-libcups' 'lib32-libstdc++5' 'lib32-e2fsprogs' 'lib32-openssl' 'lib32-heimdal')
else    depends=('cups' 'libstdc++5')
fi

My PKGBUILD smile :

# Contributor: webjdm <web.jdm@gmail.com>
# For Lexmark Z35, Z55, Z65, Z700 and Z600

pkgname=lexmarkz-cups
pkgver=1.0
pkgrel=1
pkgdesc="Lexmark Z series Printer Driver for CUPS"
arch=('i686' 'x86_64')
url="http://www.lexmark.com/"
license=('EULA')
if [ "$CARCH" = "x86_64" ]; then
    depends=('cups' 'lib32-libcups' 'lib32-libstdc++5' 'lib32-e2fsprogs' 'lib32-openssl' 'lib32-heimdal')
else    depends=('cups' 'libstdc++5')
fi
makedepends=('rpmunpack' 'cpio' 'gzip' 'bash')
conflicts=('z600' 'cjlz35le-cups')
replaces=('z600' 'cjlz35le-cups' 'cups-lexmark-700')
source=(http://[...]lexmarkz-cups/lexmarkz-cups-RPM.tar.gz)
md5sums=('711821c160e81ddf58d33f204c12e0dc')
install=lexmarkz-cups.install

build() {

  cd $startdir/src
  tar xzf lexmarkz-cups-RPM.tar.gz
  cd $startdir/pkg
  mkdir -p ./usr/lib/cups/backend/
  mkdir -p ./usr/lib/cups/filter/
  mkdir -p ./usr/share/cups/model/
  mkdir -p ./usr/include/lexmark/

# Z35 driver :
# Lexmark Z23/Z25/Z33/Z33/Z35

  cd $startdir/src
  rpmunpack z35llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz35-CUPS-2.0-1.i386.rpm
  gzip -d lexmarkz35-CUPS-2.0-1.cpio.gz
  gzip -d z35llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z35llpddk/
  mkdir -p ./usr/local/z35llpddk/utility/
  cpio -i < $startdir/src/lexmarkz35-CUPS-2.0-1.cpio
  cpio -i < $startdir/src/z35llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z55 driver :
# Lexmark Z55/Z513/Z515/Z517/X5150

  cd $startdir/src
  rpmunpack z55llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz55-CUPS-1.0-1.i386.rpm
  gzip -d lexmarkz55-CUPS-1.0-1.cpio.gz
  gzip -d z55llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z55llpddk/
  mkdir -p ./usr/local/z55llpddk/utility/
  cpio -i < $startdir/src/lexmarkz55-CUPS-1.0-1.cpio
  cpio -i < $startdir/src/z55llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z65 driver :
# Lexmark Z65

  cd $startdir/src
  rpmunpack z65llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz65-CUPS-1.0-1.i386.rpm
  gzip -d lexmarkz65-CUPS-1.0-1.cpio.gz
  gzip -d z65llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z65llpddk/
  mkdir -p ./usr/local/z65llpddk/utility/
  cpio -i < $startdir/src/lexmarkz65-CUPS-1.0-1.cpio
  cpio -i < $startdir/src/z65llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z700 driver :
# Lexmark Z700/Z703/Z705/Z708

  cd $startdir/src
  rpmunpack z700llpddk-2.0-1.i386.rpm
  rpmunpack lexmark-z700-cups-driver-1.1.1-1.i586.rpm
  gzip -d z700llpddk-2.0-1.cpio.gz
  gzip -d lexmark-z700-cups-driver-1.1.1-1.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z700llpddk/
  mkdir -p ./usr/local/z700llpddk/utility/
  cpio -i < $startdir/src/z700llpddk-2.0-1.cpio
  cpio -i < $startdir/src/lexmark-z700-cups-driver-1.1.1-1.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z600 driver :
# Lexmark Z601/Z602/Z603/Z604/Z605/Z611/Z612/Z613/Z614/Z615/Z617/Z645
# Lexmark X1100/X1110/X1130/X1140/X1150/X1170/X1185/X1190/X1195/X1240/X1250/X1270/X1290
# Lexmark P3150/P3120
# Dell A920, Dell Photo 720

  cd $startdir/src
  rpmunpack z600llpddk-2.0-1.i386.rpm
  rpmunpack z600cups-1.0-1.i386.rpm
  gzip -d z600cups-1.0-1.cpio.gz
  gzip -d z600llpddk-2.0-1.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z600llpddk/
  mkdir -p ./usr/local/z600llpddk/utility/
  cpio -i < $startdir/src/z600cups-1.0-1.cpio
  cpio -i < $startdir/src/z600llpddk-2.0-1.cpio

# Finally: removing useless folders and files
  cd $startdir/pkg
  rm -rf ./usr/local/z700cups
  rm -rf ./usr/include
  rm -rf ./usr/lib/cups/backend
  find . -name '*.la' -exec rm {} \;

}

Is that correct? tongue

Regards,
webjdm

Last edited by webjdm (2010-05-17 14:51:08)

Offline

#2 2008-07-17 18:01:37

QBall2U
Member
Registered: 2008-07-17
Posts: 4

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

Did you get that to work?

If so, how about making driver(s) for a Lexmark X5150? wink  I've got one that I would like to get up and going on my linux disto and I've "searched the world over, thought I'd found..." it but not!  Also, I've seen numerous other folks using linux searching for drivers for that same 'all-in-one' printer with no results (they've gotten it to print but not the other features of the 'all-in-one' [i.e. scanner / copier]).

I'd be glad to do any digging around the device's Windows drivers or send them to you, if you need me to!!??  I've got a couple of programming environments (C/C+/C++, Prolog, Pascal, Java installed where I can 'snoop' into programs / drivers if that helps any?

EDIT: I guess I should add, 32-bit drivers.

Thanks,
QBall

Last edited by QBall2U (2008-07-17 18:02:57)

Offline

#3 2008-07-19 03:19:50

QBall2U
Member
Registered: 2008-07-17
Posts: 4

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

Hello webjdm,

I have noticed a lot of people looking for a Linux [32-bit] driver for the Lexmark X5150 'All-in-one' printer (me included). In my earlier days of Linux, I had had that printer working with Linux (I don't remember what distro...that's been too many years ago to remember something like that  hmm ), so, if you decide to make a driver for it, you might want 'dust off' some of those older, decrepid libraries?  (just a ?dumb? suggestion)

I just wish that I knew how to program so I could make drivers for it (and many other things, as well as programs...I once upon a time, back in the good ol' DOS days, was attempting to learn BASIC but, unfortunately, I "fell off that wagon" before I got too far along.  I was making DOS screen savers and some simple FILES.BBS file file listers (for myself, mainly); the last one, I was working on getting the program to recognize most all of the various types of file_list formats and display them in a window that also allowed searching, sorting, favorites, and downloading. I never got it up to the downloading part, though....{sigh}.

Anyway. if you catch hold of a wild hair, would you think about making a Linux 32-bit driver(s) for that printer?  Many people
would be absolutely thrilled! wink  BTW: in that first code box I noticed, near the end 'fi' what is that?  Did that part get cut out?

Thanks,
QBall


webjdm wrote:

Hi everybody, this my first package that runs some Lexmark printers. But I am not sure if "depends" lines are good... yikes
It works on 64-bit system. My lexmark x1180 works big_smile

if [ "$CARCH" = "x86_64" ]; then
    depends=('cups' 'lib32-libcups' 'lib32-libstdc++5' 'lib32-e2fsprogs' 'lib32-openssl' 'lib32-heimdal')
else    depends=('cups' 'libstdc++5')
fi

My PKGBUILD smile :

# Contributor: webjdm <web.jdm@gmail.com>
# For Lexmark Z35, Z55, Z65, Z700 and Z600

pkgname=lexmarkz-cups
pkgver=1.0
pkgrel=1
pkgdesc="Lexmark Z series Printer Driver for CUPS"
arch=('i686' 'x86_64')
url="http://www.lexmark.com/"
license=('EULA')
if [ "$CARCH" = "x86_64" ]; then
    depends=('cups' 'lib32-libcups' 'lib32-libstdc++5' 'lib32-e2fsprogs' 'lib32-openssl' 'lib32-heimdal')
else    depends=('cups' 'libstdc++5')
fi
makedepends=('rpmunpack' 'cpio' 'gzip' 'bash')
conflicts=('z600' 'cjlz35le-cups')
replaces=('z600' 'cjlz35le-cups' 'cups-lexmark-700')
source=(http://joel.diasmarques.free.fr/arch/lexmarkz-cups/lexmarkz-cups-RPM.tar.gz)
md5sums=('711821c160e81ddf58d33f204c12e0dc')
install=lexmarkz-cups.install

build() {

  cd $startdir/src
  tar xzf lexmarkz-cups-RPM.tar.gz
  cd $startdir/pkg
  mkdir -p ./usr/lib/cups/backend/
  mkdir -p ./usr/lib/cups/filter/
  mkdir -p ./usr/share/cups/model/
  mkdir -p ./usr/include/lexmark/

# Z35 driver :
# Lexmark Z23/Z25/Z33/Z33/Z35

  cd $startdir/src
  rpmunpack z35llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz35-CUPS-2.0-1.i386.rpm
  gzip -d lexmarkz35-CUPS-2.0-1.cpio.gz
  gzip -d z35llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z35llpddk/
  mkdir -p ./usr/local/z35llpddk/utility/
  cpio -i < $startdir/src/lexmarkz35-CUPS-2.0-1.cpio
  cpio -i < $startdir/src/z35llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z55 driver :
# Lexmark Z55/Z513/Z515/Z517/X5150

  cd $startdir/src
  rpmunpack z55llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz55-CUPS-1.0-1.i386.rpm
  gzip -d lexmarkz55-CUPS-1.0-1.cpio.gz
  gzip -d z55llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z55llpddk/
  mkdir -p ./usr/local/z55llpddk/utility/
  cpio -i < $startdir/src/lexmarkz55-CUPS-1.0-1.cpio
  cpio -i < $startdir/src/z55llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z65 driver :
# Lexmark Z65

  cd $startdir/src
  rpmunpack z65llpddk-2.0-2.i386.rpm
  rpmunpack lexmarkz65-CUPS-1.0-1.i386.rpm
  gzip -d lexmarkz65-CUPS-1.0-1.cpio.gz
  gzip -d z65llpddk-2.0-2.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z65llpddk/
  mkdir -p ./usr/local/z65llpddk/utility/
  cpio -i < $startdir/src/lexmarkz65-CUPS-1.0-1.cpio
  cpio -i < $startdir/src/z65llpddk-2.0-2.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z700 driver :
# Lexmark Z700/Z703/Z705/Z708

  cd $startdir/src
  rpmunpack z700llpddk-2.0-1.i386.rpm
  rpmunpack lexmark-z700-cups-driver-1.1.1-1.i586.rpm
  gzip -d z700llpddk-2.0-1.cpio.gz
  gzip -d lexmark-z700-cups-driver-1.1.1-1.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z700llpddk/
  mkdir -p ./usr/local/z700llpddk/utility/
  cpio -i < $startdir/src/z700llpddk-2.0-1.cpio
  cpio -i < $startdir/src/lexmark-z700-cups-driver-1.1.1-1.cpio
  # removing useless files
  rm -rf ./usr/include/lexmark/*
  rm -rf ./usr/lib/liblexprinter.*
  rm -rf ./usr/lib/liblexprintjob.*

# Z600 driver :
# Lexmark Z601/Z602/Z603/Z604/Z605/Z611/Z612/Z613/Z614/Z615/Z617/Z645
# Lexmark X1100/X1110/X1130/X1140/X1150/X1170/X1185/X1190/X1195/X1240/X1250/X1270/X1290
# Lexmark P3150/P3120
# Dell A920, Dell Photo 720

  cd $startdir/src
  rpmunpack z600llpddk-2.0-1.i386.rpm
  rpmunpack z600cups-1.0-1.i386.rpm
  gzip -d z600cups-1.0-1.cpio.gz
  gzip -d z600llpddk-2.0-1.cpio.gz
  cd $startdir/pkg
  mkdir -p ./usr/local/z600llpddk/
  mkdir -p ./usr/local/z600llpddk/utility/
  cpio -i < $startdir/src/z600cups-1.0-1.cpio
  cpio -i < $startdir/src/z600llpddk-2.0-1.cpio

# Finally: removing useless folders and files
  cd $startdir/pkg
  rm -rf ./usr/local/z700cups
  rm -rf ./usr/include
  rm -rf ./usr/lib/cups/backend
  find . -name '*.la' -exec rm {} \;

}

Is that correct? tongue

Regards,
webjdm

Offline

#4 2008-07-19 20:14:13

webjdm
Member
Registered: 2008-07-05
Posts: 17

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

Hi,
this code will create a ARCHLINUX package to run some Lexmark printers. Your printer seems to work with the Z55 driver. To install it in your distribution, you must download RPM ( http://www.downloaddelivery.com/downloa … 0-1.TAR.GZ ), extract and install them.
The RPM drivers are created by Lexmark and can be installed.
I am not a coder, but there are How-to for running Lexmark printers.
http://ubuntuforums.org/showthread.php?t=616097
http://gentoo-wiki.com/HOWTO_Lexmark_Printers
etc

Last edited by webjdm (2008-07-19 20:17:52)

Offline

#5 2008-07-19 22:37:43

QBall2U
Member
Registered: 2008-07-17
Posts: 4

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

webjdm wrote:

Hi,
this code will create a ARCHLINUX package to run some Lexmark printers. Your printer seems to work with the Z55 driver. To install it in your distribution, you must download RPM ( http://www.downloaddelivery.com/downloa … 0-1.TAR.GZ ), extract and install them.
The RPM drivers are created by Lexmark and can be installed.
I am not a coder, but there are How-to for running Lexmark printers.
http://ubuntuforums.org/showthread.php?t=616097
http://gentoo-wiki.com/HOWTO_Lexmark_Printers
etc

Yeah, I already tried the drivers and, while my Linux recognized the printer, I cannot use the scanner or copier! [sigh]  Those 2 are part of what I need the most! hmm  Oh, well...I guess it's off to the computer store to buy a different one...I've heard Canon and Dell are the best with Linux.

Thanks for the info,
QBall

Offline

#6 2008-07-20 09:59:56

webjdm
Member
Registered: 2008-07-05
Posts: 17

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

HP isn't bad,
Good luck!

http://www.sane-project.org/sane-backends-1.0.18.html

webjdm

Last edited by webjdm (2008-07-20 10:05:21)

Offline

#7 2008-07-20 10:14:26

brynjolf
Member
From: Sweden
Registered: 2008-05-25
Posts: 63

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS


Cerebral: "Welcome to the distro.  You'll never leave.  Mwahaha"

Offline

#8 2008-07-20 13:35:51

QBall2U
Member
Registered: 2008-07-17
Posts: 4

Re: [PKGBUILD] Lexmark Z series Printer Driver for CUPS

What would it take, other than a person who knows how to make programs, to make a Linux driver from a Windows driver?  I can find Windows drivers for the Lexmark X5150 'all-in-one' on their site but the only Linux driver I saw was for 'Caldera Linux' (drivers and 'utility') and if I could (or if I could find somebody that knows programming....which I do, he can create programs using machine language)   open the Windows drivers and change some (or most) of the code to work with Linux?

Thanks,
QBall

Offline

Board footer

Powered by FluxBB