void-packages/srcpkgs/iscan/template
Dominik Honnef 33145a024b New package: iscan-2.30.1 and related
This commit adds support for Epson scanners. It packages the iscan
application, the epkowa SANE backend, iscan-data, as well as the
scanner-specific plugin for the GT S650 (and by extension V19 and V39).
More scanner plugins may be added later when people request them.

iscan is unfree because it ships with a binary blob. sane-epkowa is
free, however, same as iscan-data. Scanner plugins are unfree again.

All unfree components are covered by the AVASYS license. Not only does
it allow distribution, it's also almost a free license. However, it
forbids reverse engineering the binary blobs.

The binary blobs make this x86/amd64-only packages. The epkowa backend
itself could technically be compiled for other architectures, but it's
not evident that it's worth the time. Most modern scanners need a
proprietary plugin.
2015-07-13 20:37:20 +02:00

41 lines
1.4 KiB
Bash

# Template file for 'iscan'
pkgname=iscan
version=2.30.1
revision=1
repository=nonfree
build_style=gnu-configure
configure_args="--enable-frontend --enable-jpeg --enable-tiff --enable-png --enable-gimp"
LDFLAGS="-ldl -lpng16"
maintainer="Dominik Honnef <dominik@honnef.co>"
hostmakedepends="pkg-config"
makedepends="gtk+-devel gimp-devel libxml2-devel libjpeg-turbo-devel tiff-devel libltdl-devel libpng-devel sane-devel libusb-devel"
depends="sane-epkowa"
license="GPL-2, AVASYSPL"
homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
short_desc="EPSON Image Scan! front-end"
distfiles="https://download3.ebz.epson.net/dsc/f/03/00/03/61/59/a3f8b8d60e8702a1c5bf3977d018cc2336e308a8/${pkgname}_${version}-1.tar.gz"
checksum=79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426
only_for_archs="i686 x86_64"
post_install() {
vlicense non-free/AVASYSPL.en.txt
vmkdir usr/lib/gimp/2.0/plug-ins
ln -s /usr/bin/iscan ${DESTDIR}/usr/lib/gimp/2.0/plug-ins
}
sane-epkowa_package() {
short_desc="SANE backend for EPSON scanners"
license="GPL-2"
unset repository
depends="sane iscan-data"
conf_files="/etc/sane.d/epkowa.conf"
pkg_install() {
vmkdir etc/sane.d/dll.d
echo epkowa > ${PKGDESTDIR}/etc/sane.d/dll.d/epkowa.conf
vmove usr/lib/sane
vmove usr/share/man/man5/sane-epkowa.5
vmove usr/bin/iscan-registry
vmove usr/share/man/man8/iscan-registry.8
vinstall backend/epkowa.conf 644 etc/sane.d/
}
}