2 # Maintainer: webjdm <web.jdm@gmail.com>
7 pkgdesc="Lexmark Z35, Z55, Z65, Z600 and Z700 Printer Drivers for CUPS"
9 url="http://www.lexmark.com/"
11 if [ `arch` = "x86_64" ]; then
12 depends=('cups' 'lib32-gcc-libs' 'lib32-heimdal' 'lib32-libcups' 'lib32-gnutls' 'lib32-libstdc++5' 'lib32-sqlite3')
14 depends=('cups' 'gcc-libs' 'gnutls' 'libstdc++5' 'sqlite3')
16 makedepends=('rpmunpack' 'cpio' 'gzip' 'bash')
17 conflicts=('z600' 'cjlz35le-cups' 'cups-lexmark-700')
18 install=lexmarkz-cups.install
19 source=(http://webjdm.free.fr/archlinux/${pkgname}/${pkgname}-RPM.tar.gz \
21 md5sums=('711821c160e81ddf58d33f204c12e0dc'
22 '1cafb6e6ba400142ae23bfaff1009e3f')
29 install -D -m644 lexmark-eula.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE || return 1
33 mkdir -p usr/lib/cups/backend
34 mkdir -p usr/lib/cups/filter
35 mkdir -p usr/share/cups/model
36 mkdir -p usr/include/lexmark
44 rpmunpack z35llpddk-2.0-2.i386.rpm || return 1
45 rpmunpack lexmarkz35-CUPS-2.0-1.i386.rpm || return 1
46 gzip -d lexmarkz35-CUPS-2.0-1.cpio.gz || return 1
47 gzip -d z35llpddk-2.0-2.cpio.gz || return 1
51 mkdir -p usr/local/z35llpddk/utility
52 cpio -i < ${startdir}/src/lexmarkz35-CUPS-2.0-1.cpio || return 1
53 cpio -i < ${startdir}/src/z35llpddk-2.0-2.cpio || return 1
55 # removing useless files
56 rm -f usr/include/lexmark/*
57 rm -f usr/lib/liblexprint*
65 rpmunpack z55llpddk-2.0-2.i386.rpm || return 1
66 rpmunpack lexmarkz55-CUPS-1.0-1.i386.rpm || return 1
67 gzip -d lexmarkz55-CUPS-1.0-1.cpio.gz || return 1
68 gzip -d z55llpddk-2.0-2.cpio.gz || return 1
72 mkdir -p usr/local/z55llpddk/utility
73 cpio -i < ${startdir}/src/lexmarkz55-CUPS-1.0-1.cpio || return 1
74 cpio -i < ${startdir}/src/z55llpddk-2.0-2.cpio || return 1
76 # removing useless files
77 rm -f usr/include/lexmark/*
78 rm -f usr/lib/liblexprint*
86 rpmunpack z65llpddk-2.0-2.i386.rpm || return 1
87 rpmunpack lexmarkz65-CUPS-1.0-1.i386.rpm || return 1
88 gzip -d lexmarkz65-CUPS-1.0-1.cpio.gz || return 1
89 gzip -d z65llpddk-2.0-2.cpio.gz || return 1
93 mkdir -p usr/local/z65llpddk/utility
94 cpio -i < ${startdir}/src/lexmarkz65-CUPS-1.0-1.cpio || return 1
95 cpio -i < ${startdir}/src/z65llpddk-2.0-2.cpio || return 1
97 # removing useless files
98 rm -f usr/include/lexmark/*
99 rm -f usr/lib/liblexprint*
107 rpmunpack z700llpddk-2.0-1.i386.rpm || return 1
108 rpmunpack lexmark-z700-cups-driver-1.1.1-1.i586.rpm || return 1
109 gzip -d z700llpddk-2.0-1.cpio.gz || return 1
110 gzip -d lexmark-z700-cups-driver-1.1.1-1.cpio.gz || return 1
114 mkdir -p usr/local/z700llpddk/utility
115 cpio -i < ${startdir}/src/z700llpddk-2.0-1.cpio || return 1
116 cpio -i < ${startdir}/src/lexmark-z700-cups-driver-1.1.1-1.cpio || return 1
118 # removing useless files
119 rm -f usr/include/lexmark/*
120 rm -f usr/lib/liblexprint*
128 rpmunpack z600llpddk-2.0-1.i386.rpm || return 1
129 rpmunpack z600cups-1.0-1.i386.rpm || return 1
130 gzip -d z600cups-1.0-1.cpio.gz || return 1
131 gzip -d z600llpddk-2.0-1.cpio.gz || return 1
135 mkdir -p usr/local/z600llpddk/utility
136 cpio -i < $startdir/src/z600cups-1.0-1.cpio || return 1
137 cpio -i < $startdir/src/z600llpddk-2.0-1.cpio || return 1
141 # Finally: removing useless folders and files
142 rm -Rf usr/local/z700cups
144 rm -Rf usr/lib/cups/backend
145 find . -name '*.la' -exec rm {} \;
147 # Fix 32-Bit drivers for 64-Bit users
148 if [ "$CARCH" = "x86_64" ]; then
149 mkdir -p opt/lib32/usr/lib
150 cp usr/lib/*.* opt/lib32/usr/lib