summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Amend2015-06-13 07:30:31 +0200
committerBernd Amend2015-06-13 07:43:09 +0200
commit979b27b7ba93f6d81a7b25cf69d6295a834161d9 (patch)
tree0979c46d044d50cc066c3d64db2a3275b305c25e
parent034cd20b9b5f323b498ee2fd88167583468c0f04 (diff)
downloadaur-979b27b7ba93f6d81a7b25cf69d6295a834161d9.tar.gz
version 4.00.39
-rw-r--r--.SRCINFO25
-rw-r--r--99_smfpautoconf.rules12
-rw-r--r--PKGBUILD175
-rw-r--r--samsungUDC.desktop14
4 files changed, 156 insertions, 70 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50eb3136b93..b8f27282af4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,24 @@
pkgbase = samsung-unified-driver
pkgdesc = Unified Linux Driver for Samsung printers and scanners.
- pkgver = 1.00.35
- pkgrel = 1
+ pkgver = 4.00.39
+ pkgrel = 5
url = http://www.samsung.com
arch = i686
arch = x86_64
license = custom:samsung
- depends = libxml2
- depends = libusb-compat
+ depends = libstdc++5
+ depends = libjpeg6
depends = cups
+ depends = ghostscript
depends = sane
- noextract = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-driver2-1.00.35_1.00.35-1_amd64.deb
- noextract = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-ppd-4_1.00.35-1_all.deb
- noextract = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-driver2-common-1_1-5_all.deb
+ conflicts = samsungmfp-configurator-qt4
options = !strip
- source = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-driver2-1.00.35_1.00.35-1_amd64.deb
- source = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-ppd-4_1.00.35-1_all.deb
- source = http://www.bchemnet.com/suldr/pool/debian/extra/su/suld-driver2-common-1_1-5_all.deb
- sha512sums = 449c15f1866ff580bb57896ca00df9fae7439df998bca9e0e50dca0ad025d31c55839dd85c26769fac7499f213d8ab2ae531a706831818d2e39c7aade8b3e09b
- sha512sums = 91aae9117f7468a870c7ce23a220870bb9a9c945e2f558b2d20d659308c1501ece59c579ab86511b4e2cd374a8b5edabed23c622c932d9cf26e57fcc9d942df3
- sha512sums = 4bc511981d5ce81f283e764f6cf90d8186df57a673ed75e212777124ba3751beb0601bce75c232cf7bbed00e0646f3e2ed6bf2f361fdf2deabd31ca06d24d4d8
+ source = http://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-4.00.39.tar.gz
+ source = 99_smfpautoconf.rules
+ source = samsungUDC.desktop
+ sha1sums = a222506f2c8a6cc3cbf81ec781506c1d7aabb43e
+ sha1sums = 29ee51d7bcb2541967f34c36c72ac62ecc621a1e
+ sha1sums = e2e337d2e22cab41071e5af585f04dcf9e779c7b
pkgname = samsung-unified-driver
diff --git a/99_smfpautoconf.rules b/99_smfpautoconf.rules
new file mode 100644
index 00000000000..bcb775f5f22
--- /dev/null
+++ b/99_smfpautoconf.rules
@@ -0,0 +1,12 @@
+# This file is a part of package samsung-unified-driver
+# Rules to allow low level USB device access for smfpautoconf
+
+SUBSYSTEM!="usb|usb_device", GOTO="label_end"
+ACTION!="add", GOTO="label_end"
+
+ATTRS{idVendor}=="0419", MODE="0666"
+ATTRS{idVendor}=="04e8", MODE="0666"
+ATTRS{idVendor}=="0924", MODE="0666"
+ATTRS{idVendor}=="413c", MODE="0666"
+
+LABEL="label_end"
diff --git a/PKGBUILD b/PKGBUILD
index 66bb48566ee..558231ad2e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,78 +1,139 @@
-# Maintainer: Bernd Amend <berndamend gmail com>
-
pkgname=samsung-unified-driver
-pkgver=1.00.35
-pkgrel=1
+pkgver=4.00.39
+pkgrel=5
pkgdesc="Unified Linux Driver for Samsung printers and scanners."
arch=(i686 x86_64)
url="http://www.samsung.com"
license=('custom:samsung')
-depends=('libxml2' 'libusb-compat' 'cups' 'sane')
+depends=('libstdc++5' 'libjpeg6' 'cups' 'ghostscript' 'sane')
+conflicts=('samsungmfp-configurator-qt4')
options=(!strip)
-if [ "$CARCH" = "i686" ]; then
- CARCHCUSTOM="i386"
- sha512sums=('dd01081dede31bc0ce8181df4c834627478d141f3c27a53642b91850ecf94f0f495f3237357f0f0a1b6499c0b65f32e644159f911962bf60f4f43524fed339ed'
- '91aae9117f7468a870c7ce23a220870bb9a9c945e2f558b2d20d659308c1501ece59c579ab86511b4e2cd374a8b5edabed23c622c932d9cf26e57fcc9d942df3'
- '4bc511981d5ce81f283e764f6cf90d8186df57a673ed75e212777124ba3751beb0601bce75c232cf7bbed00e0646f3e2ed6bf2f361fdf2deabd31ca06d24d4d8')
+source=("http://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-${pkgver}.tar.gz"
+ '99_smfpautoconf.rules' 'samsungUDC.desktop')
+
+sha1sums=(
+ 'a222506f2c8a6cc3cbf81ec781506c1d7aabb43e'
+ '29ee51d7bcb2541967f34c36c72ac62ecc621a1e'
+ 'e2e337d2e22cab41071e5af585f04dcf9e779c7b')
+
+if [ "$CARCH" = "x86_64" ]; then
+ CARCHCUSTOM="$CARCH"
+ LIBDIRCUSTOM="lib64"
else
- CARCHCUSTOM="amd64"
- sha512sums=('449c15f1866ff580bb57896ca00df9fae7439df998bca9e0e50dca0ad025d31c55839dd85c26769fac7499f213d8ab2ae531a706831818d2e39c7aade8b3e09b'
- '91aae9117f7468a870c7ce23a220870bb9a9c945e2f558b2d20d659308c1501ece59c579ab86511b4e2cd374a8b5edabed23c622c932d9cf26e57fcc9d942df3'
- '4bc511981d5ce81f283e764f6cf90d8186df57a673ed75e212777124ba3751beb0601bce75c232cf7bbed00e0646f3e2ed6bf2f361fdf2deabd31ca06d24d4d8')
+ CARCHCUSTOM="i386"
+ LIBDIRCUSTOM="lib"
fi
-suld_arch="suld-driver2-${pkgver}_${pkgver}-1_${CARCHCUSTOM}.deb"
-suld_ppd="suld-ppd-4_${pkgver}-1_all.deb"
-suld_common="suld-driver2-common-1_1-5_all.deb"
+package() {
+# mpf
+ install -d "${pkgdir}/usr/lib"
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/etc/udev/rules.d/"
-source=("http://www.bchemnet.com/suldr/pool/debian/extra/su/${suld_arch}"
- "http://www.bchemnet.com/suldr/pool/debian/extra/su/${suld_ppd}"
- "http://www.bchemnet.com/suldr/pool/debian/extra/su/${suld_common}"
- )
-noextract=("${source[@]%%::*}")
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/${LIBDIRCUSTOM}/libmfp.so.1.0.1" \
+ "${pkgdir}/usr/lib/libmfp.so.1.0.1"
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/opt/smfp-common/lib/libnetsnmp.so.10.0.2" \
+ "${pkgdir}/usr/lib/libnetsnmp.so.10.0.2"
-package() {
- # common
- rm -rf common
- mkdir common
- cd common
- ar x "../${suld_common}"
- tar xf data.tar.xz
- install -d "${pkgdir}/usr/lib/udev/rules.d"
- install -m 644 -t "${pkgdir}/usr/lib/udev/rules.d/" etc/udev/rules.d/60_smfp_samsung.rules
+ install -m 644 "${srcdir}/99_smfpautoconf.rules" "${pkgdir}/etc/udev/rules.d/99_smfpautoconf.rules"
+
+# cups
+ install -d "${pkgdir}/usr/lib/cups/filter"
+ install -d "${pkgdir}/usr/lib/cups/backend/"
+ install -d "${pkgdir}/etc/cups/"
+ install -d "${pkgdir}/usr/share/cups/model/samsung/cms"
+
+ install -m 444 -t "${pkgdir}/usr/share/cups/model/samsung/cms/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/ppd/cms/*
+
+ install -m 644 -t "${pkgdir}/usr/share/cups/model/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/ppd/*.ppd
+ find "${pkgdir}/usr/share/cups/model/" -name "*.ppd" | xargs gzip -9
+
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/${LIBDIRCUSTOM}/cups/backend/mfp" \
+ "${pkgdir}/usr/lib/cups/backend/mfp"
+ install -m 755 -t "${pkgdir}/usr/lib/cups/filter/" ${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/${LIBDIRCUSTOM}/cups/filter/*
+
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/${LIBDIRCUSTOM}/cups/filter/smfpautoconf" \
+ "${pkgdir}/usr/lib/cups/filter/smfpautoconf"
+
+
+ install -m 644 -t "${pkgdir}/etc/cups/" ${srcdir}/cdroot/Linux/noarch/at_root/etc/cups/*
+
+ install -d "${pkgdir}/usr/lib/sane/"
install -d "${pkgdir}/etc/sane.d/dll.d"
- install -m 644 -t "${pkgdir}/etc/sane.d/" etc/sane.d/xerox_mfp-smfp.conf
- install -m 644 -t "${pkgdir}/etc/sane.d/dll.d" etc/sane.d/dll.d/*
+
+ install -m 644 "${srcdir}/cdroot/Linux/noarch/at_root/etc/sane.d/smfp.conf" "${pkgdir}/etc/sane.d/smfp.conf"
+
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/${LIBDIRCUSTOM}/sane/libsane-smfp.so.1.0.1" \
+ "${pkgdir}/usr/lib/sane/libsane-smfp.so.1.0.1"
+
+ install -d "${pkgdir}/opt/Samsung/mfp/bin/"
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_opt/bin/netdiscovery" "${pkgdir}/opt/Samsung/mfp/bin/netdiscovery"
+
+ install -d "${pkgdir}/usr/bin/"
+ install -m 755 "${srcdir}/cdroot/Linux/${CARCHCUSTOM}/at_root/usr/sbin/smfpd" "${pkgdir}/usr/bin/smfpd"
+
+ install -d "${pkgdir}/opt/Samsung/mfp/share/"
+ install -m 644 "${srcdir}/cdroot/Linux/OEM.ini" "${pkgdir}/opt/Samsung/mfp/share/OEM.ini"
+
+#create symbolic links
+# mpf
+ cd "${pkgdir}/usr/lib"
+ ln -s ./libmfp.so.1.0.1 ./libmfp.so.1
+ ln -s ./libmfp.so.1.0.1 ./libmfp.so
+
+#
+ cd "${pkgdir}/usr/lib/sane"
+ ln -s libsane-smfp.so.1.0.1 libsane-smfp.so.1
+ ln -s libsane-smfp.so.1 libsane-smfp.so
+
+ echo "smfp" >> "${pkgdir}/etc/sane.d/dll.d/smfp"
+ chmod 644 "${pkgdir}/etc/sane.d/dll.d/smfp"
- install -d "${pkgdir}/usr/share/licenses/samsung-unified-driver"
- install -m 644 -t "${pkgdir}/usr/share/licenses/samsung-unified-driver" usr/share/doc/suld-driver2/eula-fr.txt usr/share/doc/suld-driver2/copyright.gz
- install -m 644 usr/share/doc/suld-driver2/eula.txt "${pkgdir}/usr/share/licenses/samsung-unified-driver/LICENSE"
+# samsungmfp-configurator-qt4
+ install -d "${pkgdir}/opt/Samsung/mfp/bin/"
+ install -d "${pkgdir}/opt/Samsung/mfp/lib/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/help/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/images/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/tr/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/ui/"
+ install -d "${pkgdir}/opt/Samsung/mfp/share/utils/"
+ install -d "${pkgdir}/usr/share/applications/"
+
+ install -m 755 -t "${pkgdir}/opt/Samsung/mfp/bin/" ${srcdir}/cdroot/Linux/${CARCHCUSTOM}/qt4/at_opt/bin/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/lib/" ${srcdir}/cdroot/Linux/${CARCHCUSTOM}/qt4/at_opt/lib/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/eula.htm
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Common_LINUX
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Common_LINUX_Script
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Printer_LINUX
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Printer_LINUX-Script
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Scanner_LINUX
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/VERSION-Scanner_LINUX-Script
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/help/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/help/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/images/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/images/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/utils/" ${srcdir}/cdroot/Linux/noarch/at_opt/share/utils/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/tr/" ${srcdir}/cdroot/Linux/noarch/qt4/at_opt/share/tr/*
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/share/ui/" ${srcdir}/cdroot/Linux/noarch/qt4/at_opt/share/ui/*
- install -d "${pkgdir}/usr/share/locale/fr/LC_MESSAGES/"
- install -m 644 -t "${pkgdir}/usr/share/locale/fr/LC_MESSAGES/" usr/share/locale/fr/LC_MESSAGES/sane-smfp.mo
+ install -m 644 "${startdir}/samsungUDC.desktop" "${pkgdir}/usr/share/applications/samsungUDC.desktop"
+
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/lib/" ${srcdir}/cdroot/Linux/${CARCHCUSTOM}/qt4/at_root/opt/smfp-common/lib/*
- install -d "${pkgdir}/usr/share/doc/samsung-unified-driver/"
- install -m 644 -t "${pkgdir}/usr/share/doc/samsung-unified-driver/" usr/share/doc/suld-driver2/changelog.gz
- cd ..
-
- # ppd
- rm -rf ppd
- mkdir ppd
- cd ppd
- ar x "../${suld_ppd}"
- tar xf data.tar.xz -C "${pkgdir}"
- cd ..
+ echo "LD_LIBRARY_PATH=/opt/Samsung/mfp/lib/:\$LD_LIBRARY_PATH /opt/Samsung/mfp/bin/Configurator" >> "${pkgdir}/usr/bin/SamsungConfigurator"
+ chmod 555 "${pkgdir}/usr/bin/SamsungConfigurator"
- # arch
- rm -rf arch
- mkdir arch
- cd arch
- ar x "../${suld_arch}"
- tar xf data.tar.xz -C "${pkgdir}"
- chmod 644 "${pkgdir}/etc/sane.d/smfp.conf"
- cd ..
+ echo "LD_LIBRARY_PATH=/opt/Samsung/mfp/lib/:\$LD_LIBRARY_PATH /opt/Samsung/mfp/bin/ImageManager" >> "${pkgdir}/usr/bin/SamsungImageManager"
+ chmod 555 "${pkgdir}/usr/bin/SamsungImageManager"
+
+ echo "LD_LIBRARY_PATH=/opt/Samsung/mfp/lib/:\$LD_LIBRARY_PATH /opt/Samsung/mfp/bin/smfpscan" >> "${pkgdir}/usr/bin/smfpscan"
+ chmod 555 "${pkgdir}/usr/bin/smfpscan"
+
+ mkdir -p "${srcdir}/libtiff/"
+ tar xzf "${srcdir}/cdroot/Linux/noarch/libtiff-3-${CARCHCUSTOM}.tar.gz" -C "${srcdir}/libtiff"
+ install -m 644 -t "${pkgdir}/opt/Samsung/mfp/lib/" ${srcdir}/libtiff/usr/${LIBDIRCUSTOM}/*
}
+
diff --git a/samsungUDC.desktop b/samsungUDC.desktop
new file mode 100644
index 00000000000..6cf1113bbe1
--- /dev/null
+++ b/samsungUDC.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=Samsung Unified Driver Configurator
+Name[C]=Samsung Unified Driver Configurator
+Comment=Scan with and configure Samsung printers
+Comment[C]=Scan with and configure Samsung printers
+Categories=System;Scanning;Qt
+Exec=/usr/bin/SamsungConfigurator
+Path=/opt/Samsung/mfp/bin
+Icon=/opt/Samsung/mfp/share/images/Configurator.png
+Terminal=0
+X-KDE-SubstituteUID=false
+X-KDE-Username=