sane: install udev rules, move sane-config to -devel, fix hp officejets.

This commit is contained in:
Juan RP 2012-05-18 11:00:38 +02:00
parent 59b0cae2df
commit e9f3e32a8a
2 changed files with 15 additions and 0 deletions

View File

@ -5,10 +5,15 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=1
Add_dependency run libsane ">=$version"
noarch=yes
do_install() {
vmove usr/include usr
vmove usr/bin/sane-config usr/bin
vmove usr/share/man/man1/sane-config.1 usr/share/man/man1
vinstall tools/sane-backends.pc 644 usr/lib/pkgconfig
}

View File

@ -1,6 +1,7 @@
# Template build file for 'sane'.
pkgname=sane
version=1.0.22
revision=1
patch_args="-Np1"
wrksrc="sane-backends-${version}"
distfiles="ftp://ftp2.sane-project.org/pub/sane/sane-backends-${version}/sane-backends-${version}.tar.gz"
@ -107,3 +108,12 @@ Add_dependency build v4l-utils-devel
Add_dependency build libusb-devel
Add_dependency build net-snmp-devel
Add_dependency build libieee1284-devel
post_install() {
# fix hp officejets
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
# install udev files
vinstall tools/udev/libsane.rules 644 /lib/udev/rules.d 53-sane.rules
# fix udev rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/lib/udev/rules.d/53-sane.rules
}