summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD128
2 files changed, 149 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8f14c848de3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = cnijfilter2
+ pkgdesc = Canon IJ Printer Driver for Linux
+ pkgver = 5.20
+ pkgrel = 1
+ url = https://www.canon.com.au/home-printers
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = custom:canon
+ makedepends = automake
+ makedepends = autoconf
+ depends = cups
+ depends = libxml2
+ provides = tocanonij
+ provides = tocnpwg
+ provides = cnijlgmon3
+ source = http://gdlp01.c-wss.com/gds/0/0100006900/01/cnijfilter2-source-5.20-1.tar.gz
+ md5sums = 6a00fddeb41a5a58d209111d664ed703
+
+pkgname = cnijfilter2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..26b69dbe2ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,128 @@
+# Maintainer: Andrew Titmuss <andrew@coffeetocode.me>
+pkgname=cnijfilter2
+pkgver=5.20
+pkgrel=1
+pkgdesc="Canon IJ Printer Driver for Linux"
+arch=('i686' 'x86_64')
+url="https://www.canon.com.au/home-printers"
+license=('GPL' 'custom:canon')
+depends=('cups' 'libxml2')
+makedepends=('automake' 'autoconf')
+provides=('tocanonij' 'tocnpwg' 'cnijlgmon3')
+source=("http://gdlp01.c-wss.com/gds/0/0100006900/01/$pkgname-source-$pkgver-$pkgrel.tar.gz")
+md5sums=('6a00fddeb41a5a58d209111d664ed703')
+
+[[ "$CARCH" == "x86_64" ]] && _arch="64" || _arch="32"
+
+build() {
+ cd "$pkgname-source-$pkgver-$pkgrel"
+
+ pushd cmdtocanonij2
+ ./autogen.sh --prefix=/usr \
+ --datadir=/usr/share \
+ LDFLAGS="-L../../com/libs_bin$_arch"
+ make
+ popd
+
+ pushd cnijbe2
+ ./autogen.sh --prefix=/usr \
+ --enable-progpath=/usr/bin
+ make
+ popd
+
+ pushd lgmon3
+ ./autogen.sh --prefix=/usr \
+ --enable-libpath=/usr/lib/bjlib2 \
+ --enable-progpath=/usr/bin \
+ --datadir=/usr/share \
+ LDFLAGS="-L../../com/libs_bin$_arch"
+ make
+ popd
+
+ pushd rastertocanonij
+ ./autogen.sh --prefix=/usr \
+ --enable-progpath=/usr/bin
+ make
+ popd
+
+ pushd tocanonij
+ ./autogen.sh --prefix=/usr
+ make
+ popd
+
+ pushd tocnpwg
+ ./autogen.sh --prefix=/usr
+ make
+ popd
+}
+
+check() {
+ cd "$pkgname-source-$pkgver-$pkgrel"
+
+ pushd cmdtocanonij2
+ make check
+ popd
+
+ pushd cnijbe2
+ make check
+ popd
+
+ pushd lgmon3
+ make check
+ popd
+
+ pushd rastertocanonij
+ make check
+ popd
+
+ pushd tocanonij
+ make check
+ popd
+
+ pushd tocnpwg
+ make check
+ popd
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/bjlib2"
+ mkdir -p "$pkgdir/usr/bin"
+ mkdir -p "$pkgdir/usr/lib/cups/filter"
+ mkdir -p "$pkgdir/usr/lib/cups/backend"
+ mkdir -p "$pkgdir/usr/share/cups/model"
+
+ cd "$pkgname-source-$pkgver-$pkgrel"
+
+ install -m644 com/ini/cnnet.ini "$pkgdir/usr/lib/bjlib2"
+ install -sm755 com/libs_bin$_arch/*.so.* "$pkgdir/usr/lib"
+ install -Dm644 doc/LICENSE-cnijfilter-${pkgver}EN.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ pushd ppd
+ install -m644 *.ppd "$pkgdir/usr/share/cups/model"
+ popd
+
+ pushd cmdtocanonij2
+ make DESTDIR="$pkgdir/" install
+ popd
+
+ pushd cnijbe2
+ make DESTDIR="$pkgdir/" install
+ popd
+
+ pushd lgmon3
+ make DESTDIR="$pkgdir/" install
+ popd
+
+ pushd rastertocanonij
+ make DESTDIR="$pkgdir/" install
+ popd
+
+ pushd tocanonij
+ make DESTDIR="$pkgdir/" install
+ popd
+
+ pushd tocnpwg
+ make DESTDIR="$pkgdir/" install
+ popd
+}