updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / cnijfilter-mp640 / PKGBUILD
blob6f0e3235f0689a07499a66c4e589333bb171b49d
1 pkgname=cnijfilter-mp640
2 _pkgname=cnijfilter
3 pkgver=3.20
4 pkgrel=1
5 pkgdesc="Canon Printer Driver (For Multifunction MP640)"
6 url="http://software.canon-europe.com/products/0010757.asp"
7 arch=('i686' 'x86_64')
8 license=('custom')
9 if [ "${CARCH}" = 'x86_64' ]; then
10   depends=('lib32-libcups' 'lib32-popt' 'cnijfilter-common')
11 elif [ "${CARCH}" = 'i686' ]; then
12   depends=('libcups' 'popt' 'cnijfilter-common')
14 makedepends=('rpmextract')
15 source=(http://files.canon-europe.com/files/soft37273/software/MP640_rpm_driver_pack.tar)
16 md5sums=('44cc20ef41db260464c00bbfd6fd3793')
18 build() {
19   cd ${srcdir}
20   install -d ${pkgdir}
21   tar -xf MP640_rpm_driver_pack.tar
22   tar -xf ${_pkgname}-mp640series-${pkgver}-1-i386-rpm.tar.gz
23   cd ${_pkgname}-mp640series-${pkgver}-1-i386-rpm/packages
24   rpmextract.sh ${_pkgname}-mp640series-${pkgver}-1.i386.rpm
25   mv "usr" ${pkgdir}