python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / iscan / template
blob3c74146a5c2748a43c061dabc9b38155c95e84dc
1 # Template file for 'iscan'
2 pkgname=iscan
3 version=2.30.3
4 revision=2
5 _srcrev=1
6 repository=nonfree
7 build_style=gnu-configure
8 configure_args="--enable-frontend --enable-jpeg --enable-tiff --enable-png --enable-gimp"
9 LDFLAGS="-ldl -lpng16"
10 maintainer="Orphaned <orphan@voidlinux.eu>"
11 hostmakedepends="pkg-config"
12 makedepends="gtk+-devel gimp-devel libxml2-devel libjpeg-turbo-devel tiff-devel libltdl-devel libpng-devel sane-devel libusb-devel"
13 depends="sane-epkowa"
14 license="GPL-2, AVASYSPL"
15 homepage="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
16 short_desc="EPSON Image Scan! front-end"
17 distfiles="http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${version}-${_srcrev}.tar.gz"
18 checksum=91a6cc1571e5ec34cee067eabb35f13838e71dfeda416310ecb5b5030d49de67
19 only_for_archs="i686 x86_64"
21 post_configure() {
22         # fix wrongly created link
23         sed -i -e 's/\(libesmod-$${arch}\)$(PACKAGE_CXX_ABI)/\1.c2/' non-free/Makefile
26 post_install() {
27         vlicense non-free/AVASYSPL.en.txt
28         vmkdir usr/lib/gimp/2.0/plug-ins
29         ln -s /usr/bin/iscan ${DESTDIR}/usr/lib/gimp/2.0/plug-ins
30         vinstall iscan.desktop 644 usr/share/applications
33 sane-epkowa_package() {
34         short_desc="SANE backend for EPSON scanners"
35         license="GPL-2"
36         unset repository
37         depends="sane iscan-data"
38         conf_files="/etc/sane.d/epkowa.conf"
39         pkg_install() {
40                 vmkdir etc/sane.d/dll.d
41                 echo epkowa > ${PKGDESTDIR}/etc/sane.d/dll.d/epkowa.conf
42                 vmove usr/lib/sane
43                 vmove usr/share/man/man5/sane-epkowa.5
44                 vmove usr/bin/iscan-registry
45                 vmove usr/share/man/man8/iscan-registry.8
46                 vinstall backend/epkowa.conf 644 etc/sane.d/
47         }