blob: 91dfbfc6a7f3a7e8f196aa65474d1dd299baa8a6 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
# Maintainer: zvova7890 <zvova7890.gmail.com>
# Contributor: Alireza Savand <alireza.savand@gmail.com>
# Special thanks to: olive, mirrr, GUiHKX, alessiofachechi, jeremy33,
# jstitch, plv, lahwaacz
pkgname=cnijfilter-mp280
pkgver=3.40.1
pkgrel=5
_pkgrealver=3.40
_pkgrealrel=1
pkgdesc="Canon IJ Printer Driver (mp280 series)"
url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
arch=('i686' 'x86_64')
license=('custom')
depends=(
'libcups'
'popt'
'glibc'
'libpng>=1.0.9'
'libtiff>=3.4'
'gtk2'
)
makedepends=(
'autoconf>=2.59'
'automake>=1.9.5'
)
conflicts=('cnijfilter-common')
install=cnijfilter-mp280.install
source=(
'http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz'
'configure-fixes.patch'
'cups-fixes.patch'
'cn-ppd-support-mp280.patch'
'glibc-deprecated-fix.patch'
'compilation-fixes-2024-11-06.diff'
)
md5sums=(
'609975a05d6050fcca88f312d3f35c6a'
'd1c346d063e7fc54dc74dc72bc5615ad'
'10e68bf7d29a6206171be05893e826e1'
'1b76cb2d4a46f6a10e6aced051729bb7'
'494a454cc2e91a3e8f14a6fb81131c10'
'2b44507c54f14fb6c8e08af30fdaafe7'
)
prepare() {
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel"
patch -p1 < "$startdir/configure-fixes.patch"
patch -p1 < "$startdir/cups-fixes.patch"
patch -p1 < "$startdir/cn-ppd-support-mp280.patch"
patch -p1 < "$startdir/glibc-deprecated-fix.patch"
patch -p1 < "$startdir/compilation-fixes-2024-11-06.diff"
sed -i -e 's/png_p->jmpbuf/png_jmpbuf(png_p)/' cnijfilter/src/bjfimage.c
cp cnijfilter/src/config* lgmon/src/
cp cnijfilter/src/config* cngpijmon/cnijnpr/cnijnpr/
}
build() {
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/libs"
./autogen.sh --prefix=/usr --program-suffix=mp280
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/cngpij"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/cnijfilter"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/pstocanonij"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/lgmon"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/ppd"
./autogen.sh --prefix=/usr --program-suffix=mp280
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/cngpijmon/cnijnpr"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin LIBS="-ldl"
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/backend"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/backendnet"
./autogen.sh --prefix=/usr --program-suffix=mp280 --enable-progpath=/usr/bin
make
}
package() {
# install targets
for dir in libs cngpij cnijfilter pstocanonij lgmon ppd cngpijmon/cnijnpr backend backendnet; do
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel/$dir"
make install DESTDIR="$pkgdir"
done
# install bjlib
cd "$srcdir/cnijfilter-source-$_pkgrealver-$_pkgrealrel"
install -d "$pkgdir/usr/lib/bjlib"
install -m755 370/database/* "$pkgdir/usr/lib/bjlib"
# install shared libraries
if [ "$CARCH" == "x86_64" ]; then
libdir=libs_bin64
else
libdir=libs_bin32
fi
for file in libcnbpcmcm370.so.8.0.1 libcnbpcnclapi370.so.3.5.0 libcnbpcnclbjcmd370.so.3.3.0 \
libcnbpcnclui370.so.3.6.0 libcnbpess370.so.3.3.3 libcnbpess370.so.3.3.3 libcnbpo370.so.1.0.2; do
install -m755 "./370/$libdir/$file" "$pkgdir/usr/lib/"
done
install -m755 "./com/$libdir/libcnnet.so.1.2.0" "$pkgdir/usr/lib/"
# install license file
install -Dm644 "LICENSE-cnijfilter-${_pkgrealver}EN.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-cnijfilter-${_pkgrealver}EN.txt"
# link libraries to their basename
cd "$pkgdir/usr/lib/"
ln -s libcnbpcmcm370.so.8.0.1 libcnbpcmcm370.so
ln -s libcnbpcnclapi370.so.3.5.0 libcnbpcnclapi370.so
ln -s libcnbpcnclbjcmd370.so.3.3.0 libcnbpcnclbjcmd370.so
ln -s libcnbpcnclui370.so.3.6.0 libcnbpcnclui370.so
ln -s libcnbpess370.so.3.3.3 libcnbpess370.so
ln -s libcnbpo370.so.1.0.2 libcnbpo370.so
ln -s libcnnet.so.1.2.0 libcnnet.so
# link moved from $pkgname.install file to be included in package
install -dm755 "$pkgdir/usr/lib/cups/filter"
ln -s "pstocanonijmp280" "$pkgdir/usr/lib/cups/filter/pstocanonij"
}
|