mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 02:57:14 +08:00
improted samsung-unified-driver
This commit is contained in:
parent
aeec73d444
commit
97871f329c
65
samsung-unified-driver/PKGBUILD
Normal file
65
samsung-unified-driver/PKGBUILD
Normal file
@ -0,0 +1,65 @@
|
||||
pkgname=samsung-unified-driver
|
||||
pkgver=1.00.37
|
||||
pkgrel=1
|
||||
pkgdesc="Unified Linux Driver for Samsung printers and scanners."
|
||||
arch=('x86_64')
|
||||
url="http://www.samsung.com"
|
||||
license=('custom:samsung')
|
||||
depends=('libxml2' 'libusb-compat' 'cups' 'sane')
|
||||
options=(!strip)
|
||||
source=( "http://downloadcenter.samsung.com/content/DR/201512/20151210091120064/uld_v${pkgver}_00.99.tar.gz"
|
||||
"xerox_mfp-smfp.conf")
|
||||
sha1sums=('adf132fcbeee3cb66426a698c1ee7fe0cddfc330'
|
||||
'9298e2a94d2d12178f2cd059a064774b6d743118')
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir"/etc/sane.d
|
||||
cp "$srcdir"/uld/noarch/etc/smfp.conf "$pkgdir"/etc/sane.d
|
||||
cp "$srcdir"/xerox_mfp-smfp.conf "$pkgdir"/etc/sane.d
|
||||
|
||||
install -d "$pkgdir"/etc/sane.d/dll.d
|
||||
echo smfp > "$pkgdir"/etc/sane.d/dll.d/smfp-scanner
|
||||
echo xerox_mfp-smfp > "$pkgdir"/etc/sane.d/dll.d/smfp-scanner-fix
|
||||
|
||||
install -d "$pkgdir"/usr/lib
|
||||
cp "$srcdir"/uld/x86_64/libscmssc.so "$pkgdir"/usr/lib
|
||||
|
||||
install -d "$pkgdir"/usr/lib/cups/backend
|
||||
cp "$srcdir"/uld/x86_64/smfpnetdiscovery "$pkgdir"/usr/lib/cups/backend
|
||||
|
||||
install -d "$pkgdir"/usr/lib/cups/filter
|
||||
cp "$srcdir"/uld/x86_64/pstosecps "$pkgdir"/usr/lib/cups/filter
|
||||
cp "$srcdir"/uld/x86_64/rastertospl "$pkgdir"/usr/lib/cups/filter
|
||||
|
||||
install -d "$pkgdir"/usr/lib/sane
|
||||
cp "$srcdir"/uld/x86_64/libsane-smfp.so.1.0.1 "$pkgdir"/usr/lib/sane
|
||||
ln -s libsane-smfp.so.1.0.1 "$pkgdir"/usr/lib/sane/libsane-smfp.so.1
|
||||
ln -s libsane-smfp.so.1 "$pkgdir"/usr/lib/sane/libsane-smfp.so
|
||||
|
||||
install -d "$pkgdir"/usr/lib/udev/rules.d
|
||||
(
|
||||
OEM_FILE="$srcdir"/uld/noarch/oem.conf
|
||||
INSTALL_LOG_FILE=/dev/null
|
||||
source "$srcdir"/uld/noarch/scripting_utils
|
||||
source "$srcdir"/uld/noarch/package_utils
|
||||
source "$srcdir"/uld/noarch/scanner-script.pkg
|
||||
fill_full_template "$srcdir"/uld/noarch/etc/smfp.rules.in "$pkgdir"/usr/lib/udev/rules.d/60_smfp_samsung.rules
|
||||
)
|
||||
|
||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||
cp "$srcdir"/uld/noarch/license/eula.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
cp "$srcdir"/uld/noarch/license/eula-fr.txt "$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
cp -r "$srcdir"/uld/noarch/share/locale "$pkgdir"/usr/share
|
||||
rm -f "$pkgdir"/usr/share/locale/fr/LC_MESSAGES/install.mo
|
||||
|
||||
install -d "$pkgdir"/usr/share/ppd/suld
|
||||
for ppd in "$srcdir"/uld/noarch/share/ppd/*.ppd; do
|
||||
cp "$ppd" "$pkgdir"/usr/share/ppd/suld
|
||||
done
|
||||
|
||||
install -d "$pkgdir"/usr/share/ppd/suld/cms
|
||||
for cts in "$srcdir"/uld/noarch/share/ppd/cms/*.cts; do
|
||||
cp "$cts" "$pkgdir"/usr/share/ppd/suld/cms
|
||||
done
|
||||
}
|
67
samsung-unified-driver/xerox_mfp-smfp.conf
Normal file
67
samsung-unified-driver/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
|
Loading…
Reference in New Issue
Block a user