1 # Contributor: Christian Babeux <christian.babeux@0x80.ca>
5 pkgdesc="Samsung ML-1640 CUPS driver"
7 depends=('cups' 'ghostscript')
8 license='custom:samsung'
9 url="http://www.samsung.com"
10 source=("http://org.downloadcenter.samsung.com/content/DR/200911/20091118145015140/UnifiedLinuxDriver_1.01.tar.gz")
11 md5sums=('b03b7feaf54624a6d07ea3832889fdbc')
14 cd $startdir/src/ || return 1
15 # fix wrong modes in archive
16 chmod u=rwX,g=rX cdroot -R
17 chown root:root cdroot -R
18 install -m 644 -D "$startdir/src/cdroot/Linux/noarch/at_opt/share/ppd/ML-1640spl2.ppd" \
19 "$startdir/pkg/usr/share/cups/model/ML-1640spl2.ppd"
20 if [ "$CARCH" = "x86_64" ]; then
21 install -m 755 -D "$startdir/src/cdroot/Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungspl" \
22 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"
24 install -m 755 -D "$startdir/src/cdroot/Linux/i386/at_root/usr/lib/cups/filter/rastertosamsungspl" \
25 "$startdir/pkg/usr/lib/cups/filter/rastertosamsungspl"