1 # Maintainer: Robert McCathie <archaur at rmcc dot com dot au>
2 # Contributor: Juraj Misur <juraj.misur@gmail.com>
7 pkgdesc="Canon CAPT Printer Driver for Linux"
9 url="http://support-au.canon.com.au/contents/AU/EN/0900772408.html"
12 depends=('libxml2' 'popt')
13 makedepends=('rpmextract')
14 optdepends=('gtk2: for gui')
15 source=('http://gdlp01.c-wss.com/gds/4/0900007724/11/Linux_CAPT_PrinterDriver_V230_uk_EN.tar.gz'
18 md5sums=('a93a9c5ad0b9844a9dc5d4577488672a'
19 'dc4312dd8070d3b1b4231d47f4383020'
20 '2cdb0e8e5d3c21b389cad3b3581a13ec')
23 if [ "$CARCH" = "x86_64" ]; then
24 rpmextract.sh ../src/Linux_CAPT_PrinterDriver_V230_uk_EN/64-bit_Driver/RPM/cndrvcups-capt-2.30-1.x86_64.rpm 2> /dev/null
25 rpmextract.sh ../src/Linux_CAPT_PrinterDriver_V230_uk_EN/64-bit_Driver/RPM/cndrvcups-common-2.30-1.x86_64.rpm 2> /dev/null
27 rpmextract.sh ../src/Linux_CAPT_PrinterDriver_V230_uk_EN/32-bit_Driver/RPM/cndrvcups-capt-2.30-1.i386.rpm 2> /dev/null
28 rpmextract.sh ../src/Linux_CAPT_PrinterDriver_V230_uk_EN/32-bit_Driver/RPM/cndrvcups-common-2.30-1.i386.rpm 2> /dev/null
30 mv "$pkgdir/etc/init.d" "$pkgdir/etc/rc.d"
31 cp -rp "$pkgdir/usr/local/"* "$pkgdir/usr"
32 rm -r "$pkgdir/usr/local"
33 install -D -m755 "$srcdir/ccpd" "$pkgdir/etc/rc.d/ccpd"
34 mkdir -p "$pkgdir/var/ccpd"
35 mkdir -p "$pkgdir/var/captmon"
36 install -D -m644 "$srcdir/Linux_CAPT_PrinterDriver_V230_uk_EN/Doc/LICENSE-captdrv-2.30E.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-captdrv-2.30E.txt"