From e59c705d1acd9868a24efd555b26d6894b6f7523 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 18 Jan 2018 23:17:31 +0100 Subject: [PATCH] New package: samsung-unified-driver-1.00.37 Closes: #10978 [via git-merge-pr] --- .../files/xerox_mfp-smfp.conf | 67 ++++++++++++++++ srcpkgs/samsung-unified-driver/template | 79 +++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf create mode 100644 srcpkgs/samsung-unified-driver/template diff --git a/srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf b/srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf new file mode 100644 index 00000000000..e081bfc6641 --- /dev/null +++ b/srcpkgs/samsung-unified-driver/files/xerox_mfp-smfp.conf @@ -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 diff --git a/srcpkgs/samsung-unified-driver/template b/srcpkgs/samsung-unified-driver/template new file mode 100644 index 00000000000..7ef4afa41f0 --- /dev/null +++ b/srcpkgs/samsung-unified-driver/template @@ -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 " +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 + ) + +}