updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / pixmaip1500 / PKGBUILD
blob43c5268aa590db2491b54b08ca7005d74424ede1
1 # Contributor: Roman Abreu <romanlx at gmail.com>
2 pkgname=pixmaip1500
3 _casepkgname=iP1500Linux
4 pkgver=2.5
5 pkgrel=2
6 pkgdesc="Printer driver for Canon Pixma ip1500"
7 arch=('i686')
8 url="http://www.canon.com/"
9 license=('custom')
10 depends=('rpmextract' 'hplip' 'foomatic' 'ghostscript')
11 source=(http://software.canon-europe.com/files/soft22415/software/${_casepkgname}.tar.gz)
12 md5sums=('a77599e93a334107eb003e656ff6893b')
13 build() {
14     cd $startdir/src/iP1500
15     rpmextract.sh bjfilter-common-2.50-2.src.rpm
16     tar xvf bjfilter-common-2.50-2.tar.gz
17     cd bjfilter-common-2.50
18     mkdir -p $startdir/pkg/usr/share/cups/model
19     cp ppd/canonpixmaip1500.ppd $startdir/pkg/usr/share/cups/model
20     mkdir -p $startdir/pkg/usr/lib/bjlib
21     cp 214/database/* $startdir/pkg/usr/lib/bjlib
22     cp -a 214/libs_bin/* $startdir/pkg/usr/lib
24     cd libs
25     ./autogen.sh --prefix=$startdir/pkg/usr/local
26     make
27     make install
28     cd ..
30     cd bjfilter
31     ./autogen.sh --prefix=$startdir/pkg/usr/local --program-suffix=pixmaip1500
32     make
33     make install
34     cd ..
36     cd pstocanonbj
37     mkdir -p $startdir/pkg/usr/lib/cups/filter/
38     ./autogen.sh --prefix=$startdir/pkg/usr/local
39     make
40     make install
41     cd ..
42     cp $startdir/src/iP1500/bjfilter-common-2.50/pstocanonbj/filter/pstocanonbj $startdir/pkg/usr/lib/cups/filter/