First complete
This commit is contained in:
27
src/cndrvcups-lb/.SRCINFO
Normal file
27
src/cndrvcups-lb/.SRCINFO
Normal file
@@ -0,0 +1,27 @@
|
||||
pkgbase = cndrvcups-lb
|
||||
pkgdesc = Canon UFR II /LIPSLX Printer Driver build from source for LBP, iR & MF printers
|
||||
pkgver = 3.20
|
||||
pkgrel = 1
|
||||
url = http://support-au.canon.com.au/contents/AU/EN/0100270808.html
|
||||
install = cndrvcups-lb.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = custom
|
||||
makedepends = autoconf
|
||||
makedepends = automake
|
||||
depends = cndrvcups-common-lb=3.60
|
||||
depends = lib32-libxml2
|
||||
conflicts = cndrvcups-lb-bin
|
||||
conflicts = cndrvcups-lb-cpca
|
||||
options = !emptydirs
|
||||
options = !strip
|
||||
options = !libtool
|
||||
source = Linux_UFRII_PrinterDriver_V320_uk_EN.tar.gz::http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwMjcwODE0&cmp=ABS&lang=EN
|
||||
source = how-to.txt
|
||||
sha512sums = fc35670a07f067b6ccdebf5b96590eafac2ed984faaa8a90ce44dd44396d6de0964f6352cae0fdf8ce1f6127ebf3ea9f6610b56ba7dd9a7f382bd1c6d588a801
|
||||
sha512sums = 736e1785c443c4d129c8801a127410012889f46691259e8a7f6a54106a0647beb5b6267aabb78b3ed0a1c7a9d8ce216e159515d3aad425812e5be52c8b58e4ee
|
||||
depends_i686 = cndrvcups-common-lb=3.60
|
||||
depends_i686 = libxml2
|
||||
|
||||
pkgname = cndrvcups-lb
|
||||
|
41
src/cndrvcups-lb/cndrvcups-lb.install
Executable file
41
src/cndrvcups-lb/cndrvcups-lb.install
Executable file
@@ -0,0 +1,41 @@
|
||||
post_install(){
|
||||
if [ -d /usr/share/ppd ] ; then
|
||||
cd /usr/share/cups/model
|
||||
for fn in CN*ZK.ppd ; do \
|
||||
ln -sf "/usr/share/cups/model/"$fn /usr/share/ppd/$fn ;
|
||||
done
|
||||
fi
|
||||
chmod 4755 /usr/bin/cnpkmoduleufr2
|
||||
cat << EOF
|
||||
>>> Installation:
|
||||
>>> 1) Make sure CUPS is running and your printer is turned on and connected to your computer.
|
||||
>>> eg.
|
||||
>>> systemctl start cups
|
||||
>>>
|
||||
>>> 2) Check the name of the device, udev created for you.
|
||||
>>> eg. /dev/usb/lp0
|
||||
>>>
|
||||
>>> 3) /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v usb:[device file location] -E
|
||||
>>> eg.
|
||||
>>> /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v usb:/dev/usblp0 -E
|
||||
>>> you can find ppds in the /usr/share/cups/model/ directory)
|
||||
>>>
|
||||
>>> 4) Now you can print. Consider using "systemctl enable cups" to have it start automatically on boot
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
post_upgrade(){
|
||||
post_remove
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove(){
|
||||
if [ -d /usr/share/ppd ] ; then
|
||||
rm -rf /usr/share/ppd/CN*ZK.ppd
|
||||
fi
|
||||
}
|
||||
|
||||
op=$1
|
||||
shift
|
||||
$op $*
|
14
src/cndrvcups-lb/how-to.txt
Normal file
14
src/cndrvcups-lb/how-to.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
Installation:
|
||||
1) Make sure CUPS is running and your printer is turned on and connected to your computer.
|
||||
eg.
|
||||
systemctl start cups
|
||||
|
||||
2) Check the name of the device, udev created for you.
|
||||
eg. /dev/usb/lp0
|
||||
|
||||
3) /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v usb:[device file location] -E
|
||||
eg.
|
||||
/usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v usb:/dev/usblp0 -E
|
||||
you can find ppds in the /usr/share/cups/model/ directory)
|
||||
|
||||
6) Now you can print. If desired use "systemctl enable cups" to have it start automatically on boot
|
Reference in New Issue
Block a user