blob: a9691fac4ba52171b9dc17de1238efd2bc4daf09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Contributor: Vincenzo Mantova <xworld21@users.sf.net>
# Based on the PKGBUILD for mx920 series by Will Davis (wravix)
pkgname=cnijfilter-mg6400series
pkgver=4.00
pkgrel=2
pkgdesc="Canon InkJet Printer Driver (MG6400 Series)"
arch=('i686' 'x86_64')
url="http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG6450.aspx"
license=('custom')
depends=('popt')
provides=("cnijfilter-common=$pkgver")
source=("http://gdlp01.c-wss.com/gds/8/0100005508/01/cnijfilter-mg6400series-$pkgver-1-deb.tar.gz")
md5sums=('a921257bad9765399445e5dca899e250')
package() {
local _pkgarch=$(echo -n "${CARCH}" | sed 's/x86_/amd/' | sed 's/i6/i3/')
local _debdir="${srcdir}/cnijfilter-mg6400series-${pkgver}-1-deb/packages"
cd $pkgdir
ar -x "${_debdir}/cnijfilter-common_${pkgver}-1_${_pkgarch}.deb" "data.tar.gz"
tar -xzf data.tar.gz && rm -f data.tar.gz
ar -x "${_debdir}/cnijfilter-mg6400series_${pkgver}-1_${_pkgarch}.deb" \
"data.tar.gz"
tar -xzf data.tar.gz && rm -f data.tar.gz
mkdir -p usr/share/licenses/${pkgname}
mv usr/share/doc/cnijfilter-common/* usr/share/licenses/${pkgname}
rmdir usr/share/doc/cnijfilter-common
mv usr/share/doc/cnijfilter-mg6400series/* usr/share/licenses/${pkgname}
rmdir usr/share/doc/cnijfilter-mg6400series
rmdir usr/share/doc
# Weird permissions error from namcap
chown root usr/lib/bjlib/cnnet.ini
chgrp root usr/lib/bjlib/cnnet.ini
chmod 0755 $(find usr/bin -type f)
chmod 0755 $(find usr/lib -type f)
chmod 0644 $(find usr/share -type f)
chmod 0644 $(find etc -type f)
}
|