Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: cnijfilter2-5.70
Date: Sat, 02 Nov 2019 08:36:07 +0100	[thread overview]
Message-ID: <20191102073607.y3CXpkqlq3yrcWmcA9bjLf18ySACn8dY0C76gnPSMm8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16033@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

There is an updated pull request by x12a1f against master on the void-packages repository

https://github.com/x12a1f/void-packages master
https://github.com/void-linux/void-packages/pull/16033

New package: cnijfilter2-5.70
I wanted to use my Canon printer which did not work properly with the gutenprint or foomatic drivers. I could not find the 'official' Canon driver in void-packages so I packaged it myself.
I hope I did not forget something as this is my first package.

A patch file from https://github.com/void-linux/void-packages/pull/16033.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-16033.patch --]
[-- Type: text/x-diff, Size: 3697 bytes --]

From 0c7f5c557b7df36fe262d0707dfc3e17fa933298 Mon Sep 17 00:00:00 2001
From: Ralph van Etten <ralph@et10.org>
Date: Fri, 1 Nov 2019 16:15:54 +0100
Subject: [PATCH] New package: cnijfilter2-5.70

---
 srcpkgs/cnijfilter2/INSTALL  |  6 ++++
 srcpkgs/cnijfilter2/template | 69 ++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 srcpkgs/cnijfilter2/INSTALL
 create mode 100644 srcpkgs/cnijfilter2/template

diff --git a/srcpkgs/cnijfilter2/INSTALL b/srcpkgs/cnijfilter2/INSTALL
new file mode 100644
index 00000000000..fdfe0e9a18e
--- /dev/null
+++ b/srcpkgs/cnijfilter2/INSTALL
@@ -0,0 +1,6 @@
+case "${ACTION}" in
+	post)
+		chown cups.lp /usr/lib/bjlib2/cnnet.ini 
+		chmod 0664 /usr/lib/bjlib2/cnnet.ini
+		;;
+esac
diff --git a/srcpkgs/cnijfilter2/template b/srcpkgs/cnijfilter2/template
new file mode 100644
index 00000000000..6957d4da73e
--- /dev/null
+++ b/srcpkgs/cnijfilter2/template
@@ -0,0 +1,69 @@
+# Template file for 'cnijfilter2'
+
+_upstreamversion="5.70-1"
+
+pkgname=cnijfilter2
+version=5.70
+revision=1
+wrksrc=cnijfilter2-source-${_upstreamversion}
+archs="i686 x86_64"
+repository=nonfree
+hostmakedepends="automake autoconf libtool"
+makedepends="cups-devel glib-devel libusb-devel libxml2-devel"
+depends="cups libusb libxml2"
+short_desc="Canon printer drivers for a number of PIXMA models"
+maintainer="Ralph van Etten <ralph@et10.org>"
+license="custom:canon,GPL-2.0-or-later"
+homepage="https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_ts_series/pixma-ts9540.html?type=drivers&driverdetailid=tcm:13-1714899"
+distfiles="http://gdlp01.c-wss.com/gds/0/0100009930/01/cnijfilter2-source-${_upstreamversion}.tar.gz"
+checksum=999a0649d865e40bc5cceb8661a4b1018750d3fa0a27a75fc757a2333d7d5fb3
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_arc=64
+		;;
+	i686)
+		_arc=32
+		;;
+	*)
+		echo "Unknown target $XBPS_TARGET_MACHINE"
+		exit 1
+		;;
+esac
+
+do_configure() {
+	( cd ./cmdtocanonij2 && ./autogen.sh --prefix=/usr --datadir=/usr/share LDFLAGS="-L../../com/libs_bin${_arc}" )
+	( cd ./cmdtocanonij3 && ./autogen.sh --prefix=/usr --datadir=/usr/share LDFLAGS="-L../../com/libs_bin${_arc}" )
+	( cd ./cnijbe2 && ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin )
+	( cd ./lgmon3 && ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --enable-libpath=/usr/lib/bjlib2 --datadir=/usr/share LDFLAGS="-L../../com/libs_bin${_arc}" )
+	( cd ./rastertocanonij && ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin )
+	( cd ./tocanonij && ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin )
+	( cd ./tocnpwg && ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ./cmdtocanonij2 && make clean && make )
+	( cd ./cmdtocanonij3 && make clean && make )
+	( cd ./cnijbe2 && make clean && make )
+	( cd ./lgmon3 && make clean && make )
+	( cd ./rastertocanonij && make clean && make )
+	( cd ./tocanonij && make clean && make )
+	( cd ./tocnpwg && make clean && make )
+}
+
+do_install() {
+	( cd ./cmdtocanonij2 && make install DESTDIR=${DESTDIR} )
+	( cd ./cmdtocanonij3 && make install DESTDIR=${DESTDIR} )
+	( cd ./cnijbe2 && make install DESTDIR=${DESTDIR} )
+	( cd ./lgmon3 && make install DESTDIR=${DESTDIR} )
+	( cd ./rastertocanonij && make install DESTDIR=${DESTDIR} )
+	( cd ./tocanonij && make install DESTDIR=${DESTDIR} )
+	( cd ./tocnpwg && make install DESTDIR=${DESTDIR} )
+
+	vmkdir /usr/lib/bjlib2
+	vinstall com/ini/cnnet.ini 644 /usr/lib/bjlib2
+	vmkdir /usr/share/ppd/cnijfilter2
+	vcopy "com/libs_bin${_arc}/lib*" /usr/lib
+	vcopy "ppd/*.ppd" /usr/share/ppd/cnijfilter2
+	vlicense doc/LICENSE-cnijfilter-5.70EN.txt LICENSE.txt
+}

  parent reply	other threads:[~2019-11-02  7:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 15:32 [PR PATCH] " voidlinux-github
2019-11-01 16:51 ` [PR PATCH] [Updated] " voidlinux-github
2019-11-01 16:51 ` voidlinux-github
2019-11-02  7:36 ` voidlinux-github
2019-11-02  7:36 ` voidlinux-github [this message]
2019-11-02  8:02 ` voidlinux-github
2019-11-02  8:02 ` voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191102073607.y3CXpkqlq3yrcWmcA9bjLf18ySACn8dY0C76gnPSMm8@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).