2012-05-18 10:44:08 +02:00
|
|
|
# Template build file for 'sane'.
|
|
|
|
pkgname=sane
|
2012-08-30 09:16:54 +02:00
|
|
|
version=1.0.23
|
2013-01-08 10:10:40 +01:00
|
|
|
revision=2
|
2012-05-18 10:44:08 +02:00
|
|
|
wrksrc="sane-backends-${version}"
|
2012-06-02 12:52:21 +02:00
|
|
|
subpackages="lib${pkgname} $pkgname-devel"
|
2012-05-18 10:44:08 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-locking --enable-avahi --with-docdir=/usr/share/doc/sane
|
2013-01-08 10:10:40 +01:00
|
|
|
--disable-latex --enable-libusb_1_0 --enable-pthread"
|
2012-05-23 18:26:56 +02:00
|
|
|
depends="net-snmp"
|
2013-01-08 10:10:40 +01:00
|
|
|
makedepends="pkg-config avahi-libs-devel libjpeg-turbo-devel tiff-devel libgphoto2-devel
|
|
|
|
v4l-utils-devel libusb-devel net-snmp-devel libieee1284-devel"
|
2012-06-02 12:52:21 +02:00
|
|
|
systemd_services="saned.socket on"
|
2012-05-18 10:44:08 +02:00
|
|
|
short_desc="Scanner Access Now Easy"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.sane-project.org/"
|
|
|
|
license="GPL-2"
|
2013-01-08 11:29:22 +01:00
|
|
|
#distfiles="http://distfiles.bsdfrog.org/sane-backends-${version}.tar.gz"
|
|
|
|
distfiles="ftp://ftp.archlinux.org/other/sane/sane-backends-${version}.tar.gz"
|
2012-08-30 09:16:54 +02:00
|
|
|
checksum=4d4f5b2881615af7fc0ed75fdde7dc623a749e80e40f3f792fe4010163cbb029
|
2012-05-18 10:44:08 +02:00
|
|
|
|
|
|
|
conf_files="
|
|
|
|
/etc/sane.d/abaton.conf
|
|
|
|
/etc/sane.d/agfafocus.conf
|
|
|
|
/etc/sane.d/apple.conf
|
|
|
|
/etc/sane.d/artec.conf
|
|
|
|
/etc/sane.d/artec_eplus48u.conf
|
|
|
|
/etc/sane.d/avision.conf
|
|
|
|
/etc/sane.d/bh.conf
|
|
|
|
/etc/sane.d/canon.conf
|
|
|
|
/etc/sane.d/canon630u.conf
|
|
|
|
/etc/sane.d/canon_dr.conf
|
|
|
|
/etc/sane.d/canon_pp.conf
|
|
|
|
/etc/sane.d/cardscan.conf
|
|
|
|
/etc/sane.d/coolscan.conf
|
|
|
|
/etc/sane.d/coolscan2.conf
|
|
|
|
/etc/sane.d/coolscan3.conf
|
|
|
|
/etc/sane.d/dc210.conf
|
|
|
|
/etc/sane.d/dc240.conf
|
|
|
|
/etc/sane.d/dc25.conf
|
|
|
|
/etc/sane.d/dell1600n_net.conf
|
|
|
|
/etc/sane.d/dll.conf
|
|
|
|
/etc/sane.d/dmc.conf
|
|
|
|
/etc/sane.d/epjitsu.conf
|
|
|
|
/etc/sane.d/epson.conf
|
|
|
|
/etc/sane.d/epson2.conf
|
|
|
|
/etc/sane.d/fujitsu.conf
|
|
|
|
/etc/sane.d/genesys.conf
|
|
|
|
/etc/sane.d/gphoto2.conf
|
|
|
|
/etc/sane.d/gt68xx.conf
|
|
|
|
/etc/sane.d/hp.conf
|
|
|
|
/etc/sane.d/hp3900.conf
|
|
|
|
/etc/sane.d/hp4200.conf
|
|
|
|
/etc/sane.d/hp5400.conf
|
|
|
|
/etc/sane.d/hpsj5s.conf
|
|
|
|
/etc/sane.d/hs2p.conf
|
|
|
|
/etc/sane.d/ibm.conf
|
|
|
|
/etc/sane.d/kodak.conf
|
2012-08-30 09:16:54 +02:00
|
|
|
/etc/sane.d/kodakaio.conf
|
2012-05-18 10:44:08 +02:00
|
|
|
/etc/sane.d/leo.conf
|
|
|
|
/etc/sane.d/lexmark.conf
|
|
|
|
/etc/sane.d/ma1509.conf
|
|
|
|
/etc/sane.d/magicolor.conf
|
|
|
|
/etc/sane.d/matsushita.conf
|
|
|
|
/etc/sane.d/microtek.conf
|
|
|
|
/etc/sane.d/microtek2.conf
|
|
|
|
/etc/sane.d/mustek.conf
|
|
|
|
/etc/sane.d/mustek_pp.conf
|
|
|
|
/etc/sane.d/mustek_usb.conf
|
|
|
|
/etc/sane.d/nec.conf
|
|
|
|
/etc/sane.d/net.conf
|
|
|
|
/etc/sane.d/p5.conf
|
|
|
|
/etc/sane.d/pie.conf
|
|
|
|
/etc/sane.d/pixma.conf
|
|
|
|
/etc/sane.d/plustek.conf
|
|
|
|
/etc/sane.d/plustek_pp.conf
|
|
|
|
/etc/sane.d/qcam.conf
|
|
|
|
/etc/sane.d/ricoh.conf
|
|
|
|
/etc/sane.d/rts8891.conf
|
|
|
|
/etc/sane.d/s9036.conf
|
|
|
|
/etc/sane.d/saned.conf
|
|
|
|
/etc/sane.d/sceptre.conf
|
|
|
|
/etc/sane.d/sharp.conf
|
|
|
|
/etc/sane.d/sm3840.conf
|
|
|
|
/etc/sane.d/snapscan.conf
|
|
|
|
/etc/sane.d/sp15c.conf
|
|
|
|
/etc/sane.d/st400.conf
|
|
|
|
/etc/sane.d/stv680.conf
|
|
|
|
/etc/sane.d/tamarack.conf
|
|
|
|
/etc/sane.d/teco1.conf
|
|
|
|
/etc/sane.d/teco2.conf
|
|
|
|
/etc/sane.d/teco3.conf
|
|
|
|
/etc/sane.d/test.conf
|
|
|
|
/etc/sane.d/u12.conf
|
|
|
|
/etc/sane.d/umax.conf
|
|
|
|
/etc/sane.d/umax1220u.conf
|
|
|
|
/etc/sane.d/umax_pp.conf
|
|
|
|
/etc/sane.d/v4l.conf
|
|
|
|
/etc/sane.d/xerox_mfp.conf"
|
|
|
|
|
2012-05-18 11:00:38 +02:00
|
|
|
post_install() {
|
|
|
|
# fix hp officejets
|
|
|
|
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
|
|
|
|
# install udev files
|
2012-07-09 18:28:15 +02:00
|
|
|
vinstall tools/udev/libsane.rules 644 usr/lib/udev/rules.d 53-sane.rules
|
2012-05-18 11:00:38 +02:00
|
|
|
# fix udev rules
|
2012-07-09 18:28:15 +02:00
|
|
|
sed -i 's|NAME="%k", ||g' ${DESTDIR}/usr/lib/udev/rules.d/53-sane.rules
|
2012-05-18 11:15:44 +02:00
|
|
|
# Install systemd service.
|
2012-07-09 18:28:15 +02:00
|
|
|
vinstall ${FILESDIR}/saned@.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/saned.socket 644 usr/lib/systemd/system
|
2012-05-18 11:00:38 +02:00
|
|
|
}
|