# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=6 inherit versionator multilib MY_PV="$(get_version_component_range 1-3)" MY_PVR="$(replace_version_separator 3 -)" S="${WORKDIR}" DL_PN="iscan-bundle" DL_VER="1.0.1" if [[ ${ARCH} = 'amd64' ]]; then DL_ARCH="x64" PKG_ARCH="amd64" else DL_ARCH="x86" PKG_ARCH="amd64" fi DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend" HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" SRC_URI="x86? ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz ) amd64? ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz )" LICENSE="AVASYS" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="media-gfx/iscan" RDEPEND="${DEPEND}" src_configure () { :; } src_compile () { :; } src_install() { cd ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins bsdtar -xf ${PN}_${MY_PVR}_${PKG_ARCH}.deb bsdtar -xf data.tar.gz dodoc ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/README ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/NEWS.gz ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/AVASYSPL.en.txt insinto /usr/$(get_libdir)/iscan/ insopts -m0755 doins ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/lib/iscan/network } pkg_postinst() { elog elog "The IP address of your scanner must be" elog "inserted into the appropriate configuration" elog "file in /etc/sane.d/" elog }