updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / capt / PKGBUILD
blob21ad17bfbd312838a77c7a89fa7e7527f8159729
1 # Maintainer: Robert McCathie <archaur at rmcc dot com dot au>
2 # Contributor: Juraj Misur <juraj.misur@gmail.com>
4 pkgname=capt
5 pkgver=2.30
6 pkgrel=1
7 pkgdesc="Canon CAPT Printer Driver for Linux"
8 arch=('i686' 'x86_64')
9 url="http://support-au.canon.com.au/contents/AU/EN/0900772408.html"
10 license=('custom')
11 install=capt.install
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'
16                 'ccpd'
17                 'how-to.txt')
18 md5sums=('a93a9c5ad0b9844a9dc5d4577488672a'
19                  'dc4312dd8070d3b1b4231d47f4383020'
20                  '2cdb0e8e5d3c21b389cad3b3581a13ec')
21 build() {
22         cd "$pkgdir"
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
26         else
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
29         fi
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"