summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Gysin2016-03-13 22:57:13 +0200
committerChristoph Gysin2016-03-13 22:57:13 +0200
commite8ed58f17a2067001835eb416de1e566f7803f3e (patch)
treea5e3d14b43445d25445cd944ac9cb5f2322aba24
parentca37d59510c4c2d8992d612e659e39ab6d2c6b8c (diff)
downloadaur-e8ed58f17a2067001835eb416de1e566f7803f3e.tar.gz
split package
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD86
2 files changed, 69 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 459e53743be..03d744a7f30 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sat Jan 23 11:10:39 UTC 2016
+# Sun Mar 13 20:56:42 UTC 2016
pkgbase = samsung-unified-driver
pkgdesc = Unified Linux Driver for Samsung printers and scanners.
pkgver = 1.00.37
- pkgrel = 1
+ pkgrel = 2
url = http://www.samsung.com
arch = i686
arch = x86_64
@@ -18,5 +18,20 @@ pkgbase = samsung-unified-driver
sha512sums = 96feb7f7464db616f400f34a61bf6facafe51da9a48e19d6c4e702ea2377e86f5a5f93d085c50c8220396249febbf8e604a9fe27c25324f36ad0e58552af21fb
sha512sums = 325d2e3e42bf74663ba0ac3aa0fc3ee70ef5a5197d03c069fac6bc0f8da0d9e12d50e4b59feacef3000eff5a85d3db7f66834809013b18b31532cfea252460ef
+pkgname = samsung-unified-driver-common
+
+pkgname = samsung-unified-driver-printer
+ depends = samsung-unified-driver-common
+ depends = cups
+ depends = ghostscript
+
+pkgname = samsung-unified-driver-scanner
+ depends = samsung-unified-driver-common
+ depends = libxml2
+ depends = libusb-compat
+ depends = sane
+
pkgname = samsung-unified-driver
+ depends = samsung-unified-driver-printer
+ depends = samsung-unified-driver-scanner
diff --git a/PKGBUILD b/PKGBUILD
index 169250ff157..b9d7cac4c9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,17 @@
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
-pkgname=samsung-unified-driver
+pkgbase='samsung-unified-driver'
+pkgname=(
+ 'samsung-unified-driver-common'
+ 'samsung-unified-driver-printer'
+ 'samsung-unified-driver-scanner'
+ 'samsung-unified-driver'
+)
pkgver=1.00.37
-pkgrel=1
+pkgrel=2
-pkgdesc="Unified Linux Driver for Samsung printers and scanners."
-arch=(i686 x86_64)
+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')
@@ -17,22 +23,24 @@ source=(
sha512sums=('96feb7f7464db616f400f34a61bf6facafe51da9a48e19d6c4e702ea2377e86f5a5f93d085c50c8220396249febbf8e604a9fe27c25324f36ad0e58552af21fb'
'325d2e3e42bf74663ba0ac3aa0fc3ee70ef5a5197d03c069fac6bc0f8da0d9e12d50e4b59feacef3000eff5a85d3db7f66834809013b18b31532cfea252460ef')
-package() {
- local _arch
+_arch=${CARCH/i686/i386}
- if [ "$CARCH" == "i686" ]; then
- _arch=i386
- else
- _arch=$CARCH
- fi
+package_samsung-unified-driver()
+{
+ depends=('samsung-unified-driver-printer'
+ 'samsung-unified-driver-scanner')
+}
- mkdir -p "$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
+package_samsung-unified-driver-common()
+{
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgbase
+ cp "$srcdir"/uld/noarch/license/eula.txt "$pkgdir"/usr/share/licenses/$pkgbase/LICENSE
+ cp "$srcdir"/uld/noarch/license/eula-fr.txt "$pkgdir"/usr/share/licenses/$pkgbase
+}
- mkdir -p "$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
+package_samsung-unified-driver-printer()
+{
+ depends=('samsung-unified-driver-common' 'cups' 'ghostscript')
mkdir -p "$pkgdir"/usr/lib
cp "$srcdir"/uld/$_arch/libscmssc.so "$pkgdir"/usr/lib
@@ -44,6 +52,33 @@ package() {
cp "$srcdir"/uld/$_arch/pstosecps "$pkgdir"/usr/lib/cups/filter
cp "$srcdir"/uld/$_arch/rastertospl "$pkgdir"/usr/lib/cups/filter
+ mkdir -p "$pkgdir"/usr/share/ppd/suld
+ for ppd in "$srcdir"/uld/noarch/share/ppd/*.ppd; do
+ gzip < "$ppd" > "$pkgdir"/usr/share/ppd/suld/"${ppd##*/}".gz
+ done
+
+ mkdir -p "$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
+}
+
+package_samsung-unified-driver-scanner()
+{
+ depends=('samsung-unified-driver-common' 'libxml2' 'libusb-compat' 'sane')
+
+ mkdir -p "$pkgdir"/usr/share
+ cp -r "$srcdir"/uld/noarch/share/locale "$pkgdir"/usr/share
+ rm -f "$pkgdir"/usr/share/locale/fr/LC_MESSAGES/install.mo
+
+ mkdir -p "$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
+
+ mkdir -p "$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
+
mkdir -p "$pkgdir"/usr/lib/sane
cp "$srcdir"/uld/$_arch/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
@@ -58,21 +93,4 @@ package() {
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
)
-
- mkdir -p "$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
-
- mkdir -p "$pkgdir"/usr/share/ppd/suld
- for ppd in "$srcdir"/uld/noarch/share/ppd/*.ppd; do
- gzip < "$ppd" > "$pkgdir"/usr/share/ppd/suld/"${ppd##*/}".gz
- done
-
- mkdir -p "$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
}