void-packages/srcpkgs/iscan/template

49 lines
1.6 KiB
Bash

# Template file for 'iscan'
pkgname=iscan
version=2.30.3
revision=3
_srcrev=1
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}-${_srcrev}.tar.gz"
checksum=91a6cc1571e5ec34cee067eabb35f13838e71dfeda416310ecb5b5030d49de67
only_for_archs="i686 x86_64"
post_configure() {
# fix wrongly created link
sed -i -e 's/\(libesmod-$${arch}\)$(PACKAGE_CXX_ABI)/\1.c2/' non-free/Makefile
}
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
vinstall iscan.desktop 644 usr/share/applications
}
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/
}
}