Created
April 12, 2019 09:15
-
-
Save Markismus/1d9ebf2fe07a5af2415eebf8f5218e57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Muflone http://www.muflone.com/contacts/english/ | |
# Contributor: Frederic Bezies < fredbezies at gmail dot com> | |
# Contributor: garion < garion @ mailoo.org > | |
# Contributor: Alessio Sergi <asergi at archlinux dot us> | |
pkgname=iscan | |
pkgver=2.30.3.1 | |
pkgrel=2 | |
pkgdesc="EPSON Image Scan! front-end for scanners and all-in-ones" | |
arch=('x86_64') | |
url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" | |
license=('GPL2' 'custom:AVASYSPL') | |
depends=('gtk2' 'sane' 'libstdc++5') | |
makedepends=('gettext' 'gimp') | |
optdepends=('iscan-data: Image Scan! data files required for some devices') | |
source=("http://support.epson.net/linux/src/scanner/iscan/${pkgname}_${pkgver%.*}-${pkgver/*.}.tar.gz" | |
"libpng15.patch" | |
"jpegstream.cc.patch" | |
"epkowa.conf" | |
"hain01commits2dip-obj.patch") | |
sha256sums=('91a6cc1571e5ec34cee067eabb35f13838e71dfeda416310ecb5b5030d49de67' | |
'1a75b8df945a813a297dfd6e3dabae3bc8b51898f23af31640091e31b901f0ba' | |
'44990a5264e530a7a8ad1f95524e5d70e4f0f9009c53c8ea593cedf8d861a669' | |
'8e9e90fa50f1bd476b13766b19f100470c41dd253dc0605fbb1d0ac346a0beff' | |
'54ea1cbe2003c5ddd99fc2b548a1038beb2627edfed74f85e9f1c29f814a1ba5') | |
install="${pkgname}.install" | |
backup=("etc/sane.d/epkowa.conf") | |
prepare() { | |
cd "${pkgname}-${pkgver%.*}" | |
# patch for building iscan against libpng15 by giovanni | |
patch -Np0 -i "../libpng15.patch" | |
# patch for ambiguous div in jpegstream.cc | |
patch -Np0 -i "../jpegstream.cc.patch" | |
# patch for 16color by hain01 | |
patch -Np0 -i "../hain01commits2dip-obj.patch" | |
# add fix for CXX ABI different than 1002 | |
ln -s libesmod-x86_64.c2.so non-free/libesmod-x86_64.so | |
} | |
build() { | |
cd "${pkgname}-${pkgver%.*}" | |
export LDFLAGS="${LDFLAGS} -ldl -lpng16" | |
./configure --prefix=/usr \ | |
--sbindir=/usr/bin \ | |
--enable-dependency-reduction \ | |
--enable-frontend \ | |
--enable-jpeg \ | |
--enable-tiff \ | |
--enable-png \ | |
--enable-gimp | |
make | |
} | |
package() { | |
cd "${pkgname}-${pkgver%.*}" | |
# install files | |
make DESTDIR="${pkgdir}" install | |
# install sane configuration files | |
install -m 755 -d "${pkgdir}/etc/sane.d" | |
install -m 644 -D "backend/epkowa.conf" "${pkgdir}/etc/sane.d/" | |
install -m 755 -d "${pkgdir}/etc/sane.d/dll.d" | |
install -m 644 "${srcdir}/epkowa.conf" "${pkgdir}/etc/sane.d/dll.d/" | |
# install desktop file | |
install -m 755 -d "${pkgdir}/usr/share/applications" | |
install -m 644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/" | |
# install license | |
install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}" | |
install -m 644 "non-free/AVASYSPL.en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL" | |
# install plugin for GIMP | |
install -m 755 -d "${pkgdir}/usr/lib/gimp/2.0/plug-ins" | |
ln -s "/usr/bin/iscan" "${pkgdir}/usr/lib/gimp/2.0/plug-ins/" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment