Github messages for voidlinux
 help / color / mirror / Atom feed
From: istvan-andrasi <istvan-andrasi@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: scangearmp2-3.70
Date: Wed, 01 Apr 2020 14:45:57 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20543@inbox.vuxu.org> (raw)

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

There is a new pull request by istvan-andrasi against master on the void-packages repository

https://github.com/istvan-andrasi/void-packages master
https://github.com/void-linux/void-packages/pull/20543

New package: scangearmp2-3.70
This is the ScanGear application for Linux by Canon. I've tested it with my PIXMA TR4550.

I've created this package by copying and adjusting `cnijfilter2`.

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

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

From ee51670465446ab83763c854f6e4b4cb3d2b4c9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A1si=20Istv=C3=A1n?= <isiandrasi@gmail.com>
Date: Wed, 1 Apr 2020 14:33:13 +0200
Subject: [PATCH] New package: scangearmp2-3.70

---
 srcpkgs/scangearmp2/template | 70 ++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 srcpkgs/scangearmp2/template

diff --git a/srcpkgs/scangearmp2/template b/srcpkgs/scangearmp2/template
new file mode 100644
index 00000000000..67ee3433992
--- /dev/null
+++ b/srcpkgs/scangearmp2/template
@@ -0,0 +1,70 @@
+# Template file for 'scangearmp2'
+
+_upstreamversion="3.70-1"
+
+pkgname=scangearmp2
+version=3.70
+revision=1
+wrksrc=scangearmp2-source-${_upstreamversion}
+archs="i686 x86_64"
+repository=nonfree
+hostmakedepends="automake autoconf libtool"
+makedepends="glib-devel pkg-config gtk+-devel libusb-devel"
+depends="gtk+ libusb"
+short_desc="ScanGear MP GTK+ application for Canon PIXMA and CanoScan LiDE models"
+maintainer="Andrási István <isiandrasi@gmail.com>"
+license="custom:canon,GPL-2.0-or-later"
+homepage="https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_tr_series/pixma-tr4550.html?type=drivers&driverdetailid=tcm:128-1714905"
+distfiles="http://gdlp01.c-wss.com/gds/3/0100009933/01/scangearmp2-source-${_upstreamversion}.tar.gz"
+checksum=6d5c5b72d671bf8014260b060298e66e4b1fd1e1be475b5a7dbf4f9f9fc3edbc
+nocross="This software is provided by Canon and is only available for i686 and x86_64"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_arch=64
+		;;
+	i686)
+		_arch=32
+		;;
+	*)
+		_arch=0
+		;;
+esac
+
+pre_fetch() {
+	if [ "${_arch}" = "0" ]
+	then
+		echo "Unsupported architecture $XBPS_TARGET_MACHINE"
+		exit 1
+	fi
+}
+
+do_configure() {
+	( cd scangearmp2 && ./autogen.sh --prefix=/usr --enable-libpath=/usr/lib LDFLAGS="-L$(pwd)/../com/libs_bin${_arch}" )	
+}
+
+do_build() {
+	( cd scangearmp2 && make clean && make )	
+}
+
+do_install() {
+	( cd scangearmp2 && make install DESTDIR=${DESTDIR} )
+    
+	vmkdir /usr/lib
+	vcopy "com/libs_bin${_arch}/lib*" /usr/lib
+
+	vmkdir /usr/lib/bjlib
+	vinstall com/ini/canon_mfp2_net.ini 644 /usr/lib/bjlib
+
+	vmkdir /usr/lib/udev/rules.d
+	vcopy "scangearmp2/etc/*.rules" /usr/lib/udev/rules.d
+
+	vlicense doc/LICENSE-scangearmp-${version}EN.txt LICENSE.txt
+}
+
+post_install() {
+	if [ -x /bin/udevadm ]; then
+		/bin/udevadm control --reload-rules 2> /dev/null
+		/bin/udevadm trigger --action=add --subsystem-match=usb 2> /dev/null
+	fi
+}

             reply	other threads:[~2020-04-01 12:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 12:45 istvan-andrasi [this message]
2020-04-01 20:32 ` Chocimier
2020-04-01 21:31 ` istvan-andrasi
2020-04-24  8:11 ` istvan-andrasi
2020-04-24  8:11 ` [PR PATCH] [Closed]: " istvan-andrasi

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20543@inbox.vuxu.org \
    --to=istvan-andrasi@users.noreply.github.com \
    --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).