updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / cnijfilter-mp210 / PKGBUILD
blobdba6f85f6e07fd6d68f56adcc6266c84ed989856
1 # Contributor: sam.saffron@gmail.com based off toliman <altergan@hs-albsig.de>
2 pkgname=cnijfilter-mp210
3 pkgver=2.80
4 pkgrel=1
5 pkgdesc="Canon PIXMA MP210 printing driver for CUPS"
6 arch=('i686')
7 url="http://support-au.canon.com.au/contents/AU/EN/0100084103.html"
8 license=('GPL2' 'custom:BSD' 'custom:CANON')
9 depends=('cups>=1.1.14' 'ghostscript>=5.50' 'popt>=1.4')
10 makedepends=('autoconf>=2.13' 'automake>=1.4' 'tar' 'make' 'gcc')
11 source=('http://gdlp01.c-wss.com/gds/0100000841/cnijfilter-common-2.80-1.tar.gz')
12 md5sums=('1319f320f9f6651b43e43c0b09af5b73')
14 build() {
17   tar zxf cnijfilter-common-2.80-1.tar.gz
19   cd $srcdir/cnijfilter-common-2.80/libs
20   ./autogen.sh --prefix=/usr || return 1
21   cd $srcdir/cnijfilter-common-2.80/cngpij
22   ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
23   cd $srcdir/cnijfilter-common-2.80/pstocanonij
24   ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
25   cd $srcdir/cnijfilter-common-2.80/backend
26   ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
27   cd $srcdir/cnijfilter-common-2.80/ppd
28   ./autogen.sh --prefix=/usr || return 1
29   cd $srcdir/cnijfilter-common-2.80
31   make || return 1
33   make install DESTDIR=$startdir/pkg || return 1
34   install -d $startdir/pkg/usr/lib/bjlib
35   install -c -m 755 316/database/* $startdir/pkg/usr/lib/bjlib
36   install -c -s -m 755 316/libs_bin/*.so.* $startdir/pkg/usr/lib
37   install -D libs/buftool/LICENSE.txt $startdir/pkg/usr/share/licenses/${pkgname}/BSD
38   install -D LICENSE-cnijfilter-2.80E.txt $startdir/pkg/usr/share/licenses/${pkgname}/CANON
39   rm $startdir/pkg/usr/share/cups/model/canonip*
40   rm $startdir/pkg/usr/share/cups/model/canonmp210.ppd
42   cd $srcdir/cnijfilter-common-2.80/cnijfilter
43   ./autogen.sh --prefix=/usr --program-suffix=mp210 --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin || return 1
44   make || return 1
45   make install DESTDIR=$startdir/pkg || return 1