summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehnam Momeni2015-06-25 02:49:19 +0430
committerBehnam Momeni2015-06-25 02:56:26 +0430
commit5bd5e70aee497dcca56c5aa488a12f36259db383 (patch)
tree2c18fc07fc26cebc7f51d87ca611d36c1cbff8b6
parent6f8269c2e06376cda72c40638141d1517375bd01 (diff)
downloadaur-5bd5e70aee497dcca56c5aa488a12f36259db383.tar.gz
Creating drivers for MP250, MP270, MP490, MP550, MP560, and MP640 series
-rw-r--r--.SRCINFO53
-rw-r--r--PKGBUILD125
-rw-r--r--scangearmp-mp250.install20
-rw-r--r--scangearmp-mp270.install20
-rw-r--r--scangearmp-mp490.install20
-rw-r--r--scangearmp-mp560.install20
-rw-r--r--scangearmp-mp640.install20
7 files changed, 253 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5bf4a5216db..0e0ec93c388 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = scangearmp
- pkgdesc = Canon IJ Scanner Driver
+ pkgdesc = Canon IJ Scanner Driver for MP250, MP270, MP490, MP550, MP560, and MP640 series
pkgver = 1.40
- pkgrel = 6
+ pkgrel = 7
url = http://www.canon-europe.com/support/pixma_software/
arch = i686
arch = x86_64
@@ -36,10 +36,57 @@ pkgname = scangearmp-mpseries-common
depends_x86_64 = lib32-libusb-compat
depends_x86_64 = lib32-gimp
-pkgname = scangearmp-mp550
+pkgname = scangearmp-mp250series
+ pkgdesc = Canon IJ Scanner Driver (For MP250 series)
+ install = scangearmp-mp250.install
+ depends = scangearmp-common=1.40
+ provides = scangearmp-mp250
+ conflicts = scangearmp-mp250
+ depends_i686 = gtk2>=2.6
+ depends_x86_64 = lib32-gtk2>=2.6
+
+pkgname = scangearmp-mp270series
+ pkgdesc = Canon IJ Scanner Driver (For MP270 series)
+ install = scangearmp-mp270.install
+ depends = scangearmp-common=1.40
+ provides = scangearmp-mp270
+ conflicts = scangearmp-mp270
+ depends_i686 = gtk2>=2.6
+ depends_x86_64 = lib32-gtk2>=2.6
+
+pkgname = scangearmp-mp490series
+ pkgdesc = Canon IJ Scanner Driver (For MP490 series)
+ install = scangearmp-mp490.install
+ depends = scangearmp-common=1.40
+ provides = scangearmp-mp490
+ conflicts = scangearmp-mp490
+ depends_i686 = gtk2>=2.6
+ depends_x86_64 = lib32-gtk2>=2.6
+
+pkgname = scangearmp-mp550series
pkgdesc = Canon IJ Scanner Driver (For MP550 series)
install = scangearmp-mp550.install
depends = scangearmp-common=1.40
+ provides = scangearmp-mp550
+ conflicts = scangearmp-mp550
+ depends_i686 = gtk2>=2.6
+ depends_x86_64 = lib32-gtk2>=2.6
+
+pkgname = scangearmp-mp560series
+ pkgdesc = Canon IJ Scanner Driver (For MP560 series)
+ install = scangearmp-mp560.install
+ depends = scangearmp-common=1.40
+ provides = scangearmp-mp560
+ conflicts = scangearmp-mp560
+ depends_i686 = gtk2>=2.6
+ depends_x86_64 = lib32-gtk2>=2.6
+
+pkgname = scangearmp-mp640series
+ pkgdesc = Canon IJ Scanner Driver (For MP640 series)
+ install = scangearmp-mp640.install
+ depends = scangearmp-common=1.40
+ provides = scangearmp-mp640
+ conflicts = scangearmp-mp640
depends_i686 = gtk2>=2.6
depends_x86_64 = lib32-gtk2>=2.6
diff --git a/PKGBUILD b/PKGBUILD
index 3bfccff2325..ffb53723ab3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,19 @@
pkgbase='scangearmp'
pkgname=('scangearmp-mpseries-common'
- 'scangearmp-mp550')
+ 'scangearmp-mp250series'
+ 'scangearmp-mp270series'
+ 'scangearmp-mp490series'
+ 'scangearmp-mp550series'
+ 'scangearmp-mp560series'
+ 'scangearmp-mp640series')
_pkgname=scangearmp
pkgver=1.40
-pkgrel=6
+pkgrel=7
_pkgreview=1
-pkgdesc="Canon IJ Scanner Driver"
+pkgdesc="Canon IJ Scanner Driver for MP250, MP270, MP490, MP550, MP560, and MP640 series"
url="http://www.canon-europe.com/support/pixma_software/"
arch=('i686' 'x86_64')
@@ -29,20 +34,23 @@ source=("http://files.canon-europe.com/files/soft37281/Software/Linux_Scangear_S
sha512sums=('257f6ffece2e43c5db7b4d73ac962ddce9256b652e980b64dead2d38fe15d1b101a4f91c87b7fce1e0154fcb7fd6fc59962d4ca9abd4a20f765845aa938d8b8a'
'dd5bc73edff4f8a3452058e6f635815e6697a996cf0f3bf8a6515594af22ad730333f80a4f1b8113d36549ce8a627b92eb5e36778fc72def6852d01ef5e0930b')
-build() {
- cd ${srcdir}
- tar xzf ${_pkgname}-source-${pkgver}-${_pkgreview}.tar.gz
- cd ${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}
+prepare() {
+ cd "${srcdir}"
+ tar xzf "${_pkgname}-source-${pkgver}-${_pkgreview}.tar.gz"
+ cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}"
- export CC="gcc -m32"
-
patch -p1 -i ../mychanges.patch
for libname in "libgimp-2.0.so" "libgimpmath-2.0.so" "libgimpconfig-2.0.so" "libgimpcolor-2.0.so" "libgimpbase-2.0.so"; do
- ln -s /usr/lib32/${libname} com/libs_bin/${libname}
+ ln -fs /usr/lib32/${libname} com/libs_bin/${libname}
done
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}/scangearmp"
+
+ export CC="gcc -m32"
- cd scangearmp
./autogen.sh --prefix=/usr --libdir=/usr/lib32
if [ -x /usr/bin/libtool ]; then
rm libtool
@@ -82,24 +90,97 @@ package_scangearmp-mpseries-common() {
install -D LICENSE-scangearmp-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-scangearmp-${pkgver}EN.txt
}
-package_scangearmp-mp550() {
+scangearmp-mpverseries-packager() {
+ local mpid="$1"
+
+ cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}"
+
+ install -d ${pkgdir}/usr/lib32/bjlib
+ for libname in ${mpid}/libs_bin/*.so.*; do
+ install -s -m 755 ${libname} ${pkgdir}/usr/lib32
+ done
+ for auxname in ${mpid}/*.{tbl,DAT}; do
+ install -m 644 ${auxname} ${pkgdir}/usr/lib32/bjlib
+ done
+
+ install -D LICENSE-scangearmp-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-scangearmp-${pkgver}EN.txt
+}
+
+package_scangearmp-mp250series() {
+ pkgdesc="Canon IJ Scanner Driver (For MP250 series)"
+ install="scangearmp-mp250.install"
+ conflicts=("scangearmp-mp250")
+ provides=("scangearmp-mp250")
+
+ depends_x86_64=('lib32-gtk2>=2.6')
+ depends_i686=('gtk2>=2.6')
+ depends=("${_pkgname}-common=${pkgver}")
+
+ scangearmp-mpverseries-packager "356"
+}
+
+package_scangearmp-mp270series() {
+ pkgdesc="Canon IJ Scanner Driver (For MP270 series)"
+ install="scangearmp-mp270.install"
+ conflicts=("scangearmp-mp270")
+ provides=("scangearmp-mp270")
+
+ depends_x86_64=('lib32-gtk2>=2.6')
+ depends_i686=('gtk2>=2.6')
+ depends=("${_pkgname}-common=${pkgver}")
+
+ scangearmp-mpverseries-packager "357"
+}
+
+package_scangearmp-mp490series() {
+ pkgdesc="Canon IJ Scanner Driver (For MP490 series)"
+ install="scangearmp-mp490.install"
+ conflicts=("scangearmp-mp490")
+ provides=("scangearmp-mp490")
+
+ depends_x86_64=('lib32-gtk2>=2.6')
+ depends_i686=('gtk2>=2.6')
+ depends=("${_pkgname}-common=${pkgver}")
+
+ scangearmp-mpverseries-packager "358"
+}
+
+package_scangearmp-mp550series() {
pkgdesc="Canon IJ Scanner Driver (For MP550 series)"
- install=scangearmp-mp550.install
+ install="scangearmp-mp550.install"
+ conflicts=("scangearmp-mp550")
+ provides=("scangearmp-mp550")
depends_x86_64=('lib32-gtk2>=2.6')
depends_i686=('gtk2>=2.6')
depends=("${_pkgname}-common=${pkgver}")
- cd ${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}
+ scangearmp-mpverseries-packager "359"
+}
- install -d ${pkgdir}/usr/lib32/bjlib
- for libname in "libcncpmsimg359.so.1.4.0" "libcncpmslld359c.so.1.04.1" "libcncpmslld359.so.1.4.0"; do
- install -s -m 755 359/libs_bin/${libname} ${pkgdir}/usr/lib32
- done
- for auxname in "cnc173dd.tbl" "cnc_3590.tbl" "CNC550.DAT" "CNC550P.DAT"; do
- install -m 644 359/${auxname} ${pkgdir}/usr/lib32/bjlib
- done
+package_scangearmp-mp560series() {
+ pkgdesc="Canon IJ Scanner Driver (For MP560 series)"
+ install="scangearmp-mp560.install"
+ conflicts=("scangearmp-mp560")
+ provides=("scangearmp-mp560")
- install -D LICENSE-scangearmp-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-scangearmp-${pkgver}EN.txt
+ depends_x86_64=('lib32-gtk2>=2.6')
+ depends_i686=('gtk2>=2.6')
+ depends=("${_pkgname}-common=${pkgver}")
+
+ scangearmp-mpverseries-packager "360"
+}
+
+package_scangearmp-mp640series() {
+ pkgdesc="Canon IJ Scanner Driver (For MP640 series)"
+ install="scangearmp-mp640.install"
+ conflicts=("scangearmp-mp640")
+ provides=("scangearmp-mp640")
+
+ depends_x86_64=('lib32-gtk2>=2.6')
+ depends_i686=('gtk2>=2.6')
+ depends=("${_pkgname}-common=${pkgver}")
+
+ scangearmp-mpverseries-packager "362"
}
diff --git a/scangearmp-mp250.install b/scangearmp-mp250.install
new file mode 100644
index 00000000000..d91166fdf40
--- /dev/null
+++ b/scangearmp-mp250.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_upgrade() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_remove() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+ for LIBS in "libcncpmsimg356.so" "libcncpmslld356c.so" "libcncpmslld356.so"; do
+ if [ -h /usr/lib32/${LIBS} ]; then
+ rm -f /usr/lib32/${LIBS}
+ fi
+ done
+}
diff --git a/scangearmp-mp270.install b/scangearmp-mp270.install
new file mode 100644
index 00000000000..bc68e770f1e
--- /dev/null
+++ b/scangearmp-mp270.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_upgrade() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_remove() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+ for LIBS in "libcncpmsimg357.so" "libcncpmslld357c.so" "libcncpmslld357.so"; do
+ if [ -h /usr/lib32/${LIBS} ]; then
+ rm -f /usr/lib32/${LIBS}
+ fi
+ done
+}
diff --git a/scangearmp-mp490.install b/scangearmp-mp490.install
new file mode 100644
index 00000000000..4cd9ed4a887
--- /dev/null
+++ b/scangearmp-mp490.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_upgrade() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_remove() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+ for LIBS in "libcncpmsimg358.so" "libcncpmslld358c.so" "libcncpmslld358.so"; do
+ if [ -h /usr/lib32/${LIBS} ]; then
+ rm -f /usr/lib32/${LIBS}
+ fi
+ done
+}
diff --git a/scangearmp-mp560.install b/scangearmp-mp560.install
new file mode 100644
index 00000000000..bd54a494805
--- /dev/null
+++ b/scangearmp-mp560.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_upgrade() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_remove() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+ for LIBS in "libcncpmsimg360.so" "libcncpmslld360c.so" "libcncpmslld360.so"; do
+ if [ -h /usr/lib32/${LIBS} ]; then
+ rm -f /usr/lib32/${LIBS}
+ fi
+ done
+}
diff --git a/scangearmp-mp640.install b/scangearmp-mp640.install
new file mode 100644
index 00000000000..0e288ae7f25
--- /dev/null
+++ b/scangearmp-mp640.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_upgrade() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+}
+post_remove() {
+ if [ -x /sbin/ldconfig ]; then
+ /sbin/ldconfig /usr/lib32
+ fi
+ for LIBS in "libcncpmsimg362.so" "libcncpmslld362c.so" "libcncpmslld362.so"; do
+ if [ -h /usr/lib32/${LIBS} ]; then
+ rm -f /usr/lib32/${LIBS}
+ fi
+ done
+}