updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / samsung-ml1710 / PKGBUILD
blob81155bffaf05c7a20e8ce954329541be5d2da704
1 # Contributor: Marco Carrozzo <ozeta86@gmail.com>
2 pkgname=samsung-ml1710
3 pkgver=1
4 pkgrel=1
5 pkgdesc="Samsung ML-1710 CUPS driver"
6 arch=('i686' 'x86_64')
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')
14 build() {
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"
24     else
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"
27     fi