1 # Contributor: Alessio Bianchi <venator85@gmail.com>
2 # Fixed by RIPPERO <ripperoso@gmail.com>
4 pkgname=samsung-scx4200
7 pkgdesc="Samsung SCX-4200 CUPS driver"
9 depends=('cups' 'ghostscript')
10 license='custom:samsung'
11 url="http://www.samsung.com"
12 source=("http://downloadcenter.samsung.com/content/DR/200902/20090225140447171/UnifiedLinuxDriver.tar.gz")
13 md5sums=('37cf8a04456767be374520c24570be7d')
16 cd $startdir/src/ || return 1
17 # fix wrong modes in archive
18 chmod u=rwX,g=rX cdroot -R
19 chown root:root cdroot -R
20 install -m 644 -D "$startdir/src/cdroot/Linux/noarch/at_opt/share/ppd/scx4200.ppd" \
21 "$startdir/pkg/usr/share/cups/model/scx4200.ppd"
22 if [ "$CARCH" = "x86_64" ]; then
23 install -m 755 -D "$startdir/src/cdroot/Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungspl" \
24 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"
26 install -m 755 -D "$startdir/src/cdroot/Linux/i386/at_root/usr/lib/cups/filter/rastertosamsungspl" \
27 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"