cnrdrvcups-ufr2 6.20.1.20

Canon UFR II Printer Driver for Linux

Не проверено
 1sfe_249_new_extractor=1
 2
 3_pkgver='6.20'
 4_dl='8/0100007658/47'
 5_suffix1='m17n'
 6_suffix2='20'
 7
 8name=cnrdrvcups-ufr2
 9version="${_pkgver}.1.${_suffix2}"
10release=1
11summary="Canon UFR II Printer Driver for Linux"
12group="System/Configuration/Hardware"
13desc="Canon UFR II Printer Driver for Linux.
14This UFR II printer driver provides printing functions for Canon LBP/iR
15printers operating under the CUPS (Common UNIX Printing System) environment."
16maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
17architectures=("amd64")
18homepage="https://www.canon.ru/support/consumer/products/printers/i-sensys/"
19license=("custom")
20
21nonfree=1
22nonfree_msgfile=agreement.txt
23nonfree_msgfile_ru=agreement_ru.txt
24
25provides=()
26conflicts=(
27	# from epm play
28	cnrdrvcups-ufr2-uk
29)
30
31sources=(
32	"http://gdlp01.c-wss.com/gds/${_dl}/linux-UFRII-drv-v${_pkgver//\./}-${_suffix1}-${_suffix2}.tar.gz"
33)
34
35checksums=(
36	sha256:e9025a68006e6c46844692717d51b182107cc886f6a4269067af95a2a8e662b9
37)
38
39auto_reqprov_method=dirty
40auto_req=1
41auto_prov=1
42
43disable_network=1
44
45prepare() {
46	rpm2cpio "${srcdir}/linux-UFRII-drv-v${_pkgver//\./}-${_suffix1}/x64/RPM/cnrdrvcups-ufr2-uk-${_pkgver}-1.${_suffix2}.x86_64.rpm" | cpio -idm
47}
48
49package() {
50	cp -R usr etc "$pkgdir/"
51}
52
53files() {
54	files-find-binary
55	files-find-lang
56
57	files-find \
58		"/usr/lib64/*" \
59		"/usr/lib/cups/backend/*" \
60		"/usr/lib/cups/filter/*"
61
62	files-find \
63		"/etc/cngplp2/*"
64
65	files-find \
66		"/usr/share/caepcm/ufr2/*" \
67		"/usr/share/cngplp2/*" \
68		"/usr/share/cnpkbidir/*" \
69		"/usr/share/cnsetuputil2/*" \
70		"/usr/share/cups/model/*" \
71		"/usr/share/cups/usb/*" \
72		"/usr/share/ufr2filterr/*"
73}