updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / samsung-scx4200 / PKGBUILD
blobf06547fe5b50f22e031bea2f0767f6a1293e8ea4
1 # Contributor: Alessio Bianchi <venator85@gmail.com>
2 # Fixed by RIPPERO <ripperoso@gmail.com>
4 pkgname=samsung-scx4200
5 pkgver=3.00.37
6 pkgrel=1
7 pkgdesc="Samsung SCX-4200 CUPS driver"
8 arch=('i686' 'x86_64')
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')
15 build() {
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"
25     else
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"
28     fi