updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cnijfilter-common / PKGBUILD
blob26901f197e59a4dfe7fea7e1dc07a247efd4be6c
1 # Contributor: Eric Le Bras <eric.lebras@gmail.com>
2 # Contributor: Jeroen Op 't Eynde <jeroen [at] xprsyrslf [dot] be>
4 pkgname=cnijfilter-common
5 pkgver=3.00
6 pkgrel=3
7 pkgdesc="Canon IJ Printer Driver (Common package)"
8 url="http://support-my.canon-asia.com/contents/MY/EN/0100159804.html"
9 arch=('i686' 'x86_64')
10 license=('custom')
11 if [ "${CARCH}" = 'x86_64' ]; then
12   depends=('lib32-libcups' 'lib32-popt')
13 elif [ "${CARCH}" = 'i686' ]; then
14   depends=('libcups' 'popt')
16 makedepends=('rpmextract')
17 source=(http://gdlp01.c-wss.com/gds/8/0100001598/01/cnijfilter-common-$pkgver-1.i386.rpm)
18 md5sums=('4d7699a80c06886d4a2219d497203bb1')
20 build() {
21   cd $startdir/pkg/
22   rpmextract.sh $startdir/src/cnijfilter-common-$pkgver-1.i386.rpm
23   mkdir -p usr/share/licenses/${pkgname}
24   mv usr/share/doc/cnijfilter-common-$pkgver/* usr/share/licenses/${pkgname}
25   rm -rf usr/share/doc
26   chmod -R a+rX usr/