New package: samsung-unified-driver-1.00.37
Closes: #10978 [via git-merge-pr]
This commit is contained in:
		 Thomas Bernard
					Thomas Bernard
				
			
				
					committed by
					
						 Jürgen Buchmüller
						Jürgen Buchmüller
					
				
			
			
				
	
			
			
			 Jürgen Buchmüller
						Jürgen Buchmüller
					
				
			
						parent
						
							be69e8bfbc
						
					
				
				
					commit
					e59c705d1a
				
			
							
								
								
									
										67
									
								
								srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| #xerox_mfp-smfp.conf | ||||
|  | ||||
| # Samsung CLX-2160 | ||||
| usb 0x04e8 0x3425 | ||||
|  | ||||
| # Samsung CLX-3170FN & CLX-3175FW | ||||
| usb 0x04e8 0x342a | ||||
|  | ||||
| # Samsung CLX-3185 | ||||
| usb 0x04e8 0x343d | ||||
|  | ||||
| # Samsung CLX-3300 | ||||
| usb 0x04e8 0x3456 | ||||
|  | ||||
| # Samsung M2070 | ||||
| usb 0x04e8 0x3469 | ||||
|  | ||||
| # Samsung SCX-3200 & SCX-3205W | ||||
| usb 0x04e8 0x3441 | ||||
|  | ||||
| # Samsung SCX-3405W | ||||
| usb 0x04e8 0x344f | ||||
|  | ||||
| # Samsung SCX-4100 | ||||
| usb 0x04e8 0x3413 | ||||
|  | ||||
| # Samsung SCX-4200 | ||||
| usb 0x04e8 0x341b | ||||
|  | ||||
| # Samsung SCX-4216F | ||||
| usb 0x04e8 0x3409 | ||||
|  | ||||
| # Samsung SCX-4300 | ||||
| usb 0x04e8 0x342e | ||||
|  | ||||
| # Samsung SCX-4500 | ||||
| usb 0x04e8 0x3426 | ||||
|  | ||||
| # Samsung SCX-4500W | ||||
| usb 0x04e8 0x342b | ||||
|  | ||||
| # Samsung SCX-4521F | ||||
| usb 0x04e8 0x3419 | ||||
|  | ||||
| # Samsung SCX-4600 | ||||
| usb 0x04e8 0x3433 | ||||
|  | ||||
| # Samsung SCX-4623 | ||||
| usb 0x04e8 0x3434 | ||||
|  | ||||
| # Samsung SCX-4623FW | ||||
| usb 0x04e8 0x3440 | ||||
|  | ||||
| # Samsung SCX-4725FN | ||||
| usb 0x04e8 0x341f | ||||
|  | ||||
| # Samsung SCX-4824 | ||||
| usb 0x04e8 0x342c | ||||
|  | ||||
| # Samsung SCX-4825FN | ||||
| usb 0x04e8 0x343c | ||||
|  | ||||
| # Samsung SCX-4828FN (4x28 Series) | ||||
| usb 0x04e8 0x342d | ||||
|  | ||||
| # Samsung SCX-4833FD | ||||
| usb 0x04e8 0x344b | ||||
							
								
								
									
										79
									
								
								srcpkgs/samsung-unified-driver/template
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								srcpkgs/samsung-unified-driver/template
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | ||||
| # Template file for 'samsung-unified-driver-nonfree' | ||||
| pkgname=samsung-unified-driver | ||||
| version=1.00.37 | ||||
| revision=1 | ||||
| create_wrksrc=yes | ||||
| only_for_archs="i686 x86_64" | ||||
| repository=nonfree | ||||
| depends="libxml2 libusb-compat cups sane ghostscript" | ||||
| short_desc="Unified Linux Driver for Samsung printers and scanners" | ||||
| maintainer="Thomas Bernard <thomas@famillebernardgouriou.fr>" | ||||
| license="Propietary" | ||||
| homepage="http://www.samsung.com" | ||||
| distfiles="http://downloadcenter.samsung.com/content/DR/201512/20151210091120064/uld_v${version}_00.99.tar.gz" | ||||
| checksum="6b85253ea0bb51d241f6fd665ff0d39464cdad87084802a77a385c707fa2c664" | ||||
| nostrip=true | ||||
|  | ||||
| post_extract() { | ||||
| 	mv uld/i386 uld/i686 | ||||
| } | ||||
|  | ||||
| do_install() { | ||||
|  | ||||
| 	vmkdir "$DESTDIR"/usr/share/licenses/$pkgbase | ||||
| 	vcopy uld/noarch/license/eula.txt "$DESTDIR"/usr/share/licenses/$pkgbase/LICENSE | ||||
| 	vcopy uld/noarch/license/eula-fr.txt "$DESTDIR"/usr/share/licenses/$pkgbase | ||||
|  | ||||
| 	# install the printer driver | ||||
| 	vmkdir /usr/lib | ||||
| 	vcopy uld/$XBPS_TARGET_MACHINE/libscmssc.so /usr/lib | ||||
|  | ||||
| 	vmkdir /usr/lib/cups/backend | ||||
| 	vcopy uld/$XBPS_TARGET_MACHINE/smfpnetdiscovery /usr/lib/cups/backend | ||||
|  | ||||
| 	vmkdir /usr/lib/cups/filter | ||||
| 	vcopy uld/$XBPS_TARGET_MACHINE/pstosecps /usr/lib/cups/filter | ||||
| 	vcopy uld/$XBPS_TARGET_MACHINE/rastertospl /usr/lib/cups/filter | ||||
|  | ||||
| 	vmkdir /usr/share/ppd/suld | ||||
| 	for ppd in uld/noarch/share/ppd/*.ppd; do | ||||
| 		gzip < "$ppd" > "$DESTDIR"/usr/share/ppd/suld/"${ppd##*/}".gz | ||||
| 	done | ||||
|  | ||||
| 	vmkdir /usr/share/ppd/suld/cms | ||||
| 	for cts in uld/noarch/share/ppd/cms/*.cts; do | ||||
| 		vcopy "$cts" /usr/share/ppd/suld/cms | ||||
| 	done | ||||
|  | ||||
| 	# install the scanner driver | ||||
|  | ||||
| 	vmkdir /usr/share | ||||
|  | ||||
| 	vcopy uld/noarch/share/locale /usr/share | ||||
| 	rm -f "$DESTDIR"/usr/share/locale/fr/LC_MESSAGES/install.mo | ||||
|  | ||||
| 	vmkdir /etc/sane.d | ||||
| 	vcopy uld/noarch/etc/smfp.conf /etc/sane.d | ||||
| 	vcopy $FILESDIR/xerox_mfp-smfp.conf /etc/sane.d | ||||
|  | ||||
| 	vmkdir /etc/sane.d/dll.d | ||||
| 	echo smfp > "$DESTDIR"/etc/sane.d/dll.d/smfp-scanner | ||||
| 	echo $FILESDIR/xerox_mfp-smfp > "$DESTDIR"/etc/sane.d/dll.d/smfp-scanner-fix | ||||
|  | ||||
| 	vmkdir /usr/lib/sane | ||||
| 	vcopy uld/$XBPS_TARGET_MACHINE/libsane-smfp.so.1.0.1 /usr/lib/sane | ||||
|  | ||||
| 	vmkdir /usr/lib/udev/rules.d | ||||
| 	( | ||||
| 	OEM_FILE=uld/noarch/oem.conf | ||||
| 	INSTALL_LOG_FILE=/dev/null | ||||
| 	source uld/noarch/scripting_utils | ||||
| 	source uld/noarch/package_utils | ||||
| 	source uld/noarch/scanner-script.pkg | ||||
| 	fill_full_template uld/noarch/etc/smfp.rules.in "$DESTDIR"/usr/lib/udev/rules.d/60_smfp_samsung.rules | ||||
|  | ||||
| 	vmkdir /opt/samsung/scanner/share | ||||
| 	vcopy "$OEM_FILE" /opt/samsung/scanner/share | ||||
| 	) | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user