blob: 995007156cca52cbbe1b8e1e49c8e5c64aede757 (
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
|
# Maintainer:
# Contributor: m4dz <code(at)m4dz(dot)net>
_pkgname="cnijfilter2-mg7700"
pkgname="$_pkgname"
pkgver=5.20
_deb_pkgrel=1
pkgrel=3
pkgdesc='Canon InkJet Printer Driver (PIXMA MG3640, MG3650, MG5740, MG5750, MG6840, MG6850, MG7740, MG7750)'
url='https://th.canon/en/support/0100690202'
arch=('i686' 'x86_64')
license=('LicenseRef-Canon')
depends=(
'cups'
'ghostscript'
'libxml2'
)
provides=("cnijfilter2=$pkgver")
_filename="cnijfilter2-$pkgver-$_deb_pkgrel"
_pkgext="tar.gz"
source=("https://gdlp01.c-wss.com/gds/2/0100006902/01/$_filename-deb.$_pkgext")
sha256sums=('bec7bb37ce410ea1418a52526f9f7c0e0626979819ce6f7992ef245b37da7dd3')
prepare() {
local _pkgarch=$(echo -n "${CARCH}" | sed 's/x86_/amd/' | sed 's/i6/i3/')
local _debdir="${_filename}-deb/packages"
ar -x "${_debdir}/${_filename/-/_}_${_pkgarch}.deb" "data.tar.gz"
bsdtar -xzf data.tar.gz
}
package() {
cp --reflink=auto -r usr "$pkgdir"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
mv "$pkgdir/usr/share/doc/cnijfilter2"/LICENSE* "$pkgdir/usr/share/licenses/$pkgname/"
}
|