updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / samsung-ml1640 / PKGBUILD
blobf7f8d03b374c9d3dc3c9e9ca51c144c7d89c2682
1 # Contributor: Christian Babeux <christian.babeux@0x80.ca>
2 pkgname=samsung-ml1640
3 pkgver=3.00.65
4 pkgrel=1
5 pkgdesc="Samsung ML-1640 CUPS driver"
6 arch=('i686' 'x86_64')
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')
13 build() {
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"
23     else
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"
26     fi