void-packages/srcpkgs/iscan/template

41 lines
1.4 KiB
Bash

# Template file for 'iscan'
pkgname=iscan
version=2.30.1
revision=2
repository=nonfree
build_style=gnu-configure
configure_args="--enable-frontend --enable-jpeg --enable-tiff --enable-png --enable-gimp"
LDFLAGS="-ldl -lpng16"
maintainer="Orphaned <orphan@voidlinux.eu>"
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="http://support.epson.net/linux/src/scanner/iscan/${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/
}
}