1 # Contributor: Marco Carrozzo <ozeta86@gmail.com>
5 pkgdesc="Samsung ML-1710 CUPS driver"
7 depends=('cups' 'ghostscript')
8 license='custom:samsung'
9 url="http://www.samsung.com"
10 source=("http://downloadcenter.samsung.com/content/DR/200707/UnifiedLinuxDriver.tar.gz")
11 md5sums=('37cf8a04456767be374520c24570be7d')
15 cd $startdir/src/ || return 1
16 # fix wrong modes in archive
17 chmod u=rwX,g=rX cdroot -R
18 chown root:root cdroot -R
19 install -m 644 -D "$startdir/src/cdroot/Linux/noarch/at_opt/share/ppd/ML-1710spl2.ppd" \
20 "$startdir/pkg/usr/share/cups/model/ML-1710spl2.ppd"
21 if [ "$CARCH" = "x86_64" ]; then
22 install -m 755 -D "$startdir/src/cdroot/Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungspl" \
23 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"
25 install -m 755 -D "$startdir/src/cdroot/Linux/i386/at_root/usr/lib/cups/filter/rastertosamsungspl" \
26 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"