void-packages/srcpkgs/imagescan/template

33 lines
1.3 KiB
Bash
Raw Normal View History

# Template file for 'imagescan'
pkgname=imagescan
version=3.36.0
revision=1
wrksrc="utsushi-0.36.0"
build_style=gnu-configure
configure_args="--libexecdir=/usr/lib --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib
--with-gtkmm --enable-sane-config --with-sane-confdir=/etc/sane.d --enable-udev-config
--with-udev-confdir=/usr/lib/udev --with-jpeg --with-magick --with-sane --with-tiff"
conf_files="/etc/utsushi/combo.conf"
mutable_files="/etc/sane.d/dll.d/utsushi"
hostmakedepends="pkg-config ImageMagick sane"
makedepends="boost boost-devel gtkmm2 gtkmm2-devel eudev-libudev-devel libusb-devel
bzip2-devel zlib-devel libjpeg-turbo-devel tiff-devel sane-devel"
depends="ImageMagick"
short_desc="EPSON Image Scan v3 front-end and backend for scanners and all-in-ones"
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
license="GPL-3.0-or-later"
homepage="https://github.com/utsushi/imagescan"
distfiles="http://support.epson.net/linux/src/scanner/imagescanv3/debian/${pkgname}_${version}.orig.tar.gz"
checksum=ba5a011999b5d7a06fad9ce43c6d54d40862ec53fa4751671792bdcd28e1eed2
CFLAGS="-Wno-error"
CXXFLAGS="-Wno-error"
post_install() {
# remove include dir
rm -rf $DESTDIR/usr/include
# rename udev rule
mv $DESTDIR/usr/lib/udev/rules.d/{,60-}utsushi-esci.rules
vinstall $FILESDIR/imagescan.desktop 644 usr/share/applications
}