sane: switch to /usr.

This commit is contained in:
Juan RP 2012-07-09 18:28:15 +02:00
parent 138658d299
commit d0a1295614

View file

@ -1,10 +1,9 @@
# Template build file for 'sane'.
pkgname=sane
version=1.0.22
revision=5
revision=6
patch_args="-Np1"
wrksrc="sane-backends-${version}"
distfiles="ftp://ftp2.sane-project.org/pub/sane/sane-backends-${version}/sane-backends-${version}.tar.gz"
subpackages="lib${pkgname} $pkgname-devel"
build_style=gnu-configure
configure_args="--disable-locking --enable-avahi --with-docdir=/usr/share/doc/sane
@ -16,6 +15,7 @@ short_desc="Scanner Access Now Easy"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.sane-project.org/"
license="GPL-2"
distfiles="ftp://ftp2.sane-project.org/pub/sane/sane-backends-${version}/sane-backends-${version}.tar.gz"
checksum=9f84a16800497f0b79a278531bb1a0f438de6ce8cf509fefc65a252e29f90c54
long_desc="
SANE stands for Scanner Access Now Easy and is an application programming
@ -105,10 +105,10 @@ 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
vinstall tools/udev/libsane.rules 644 usr/lib/udev/rules.d 53-sane.rules
# fix udev rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/lib/udev/rules.d/53-sane.rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/usr/lib/udev/rules.d/53-sane.rules
# Install systemd service.
vinstall ${FILESDIR}/saned@.service 644 lib/systemd/system
vinstall ${FILESDIR}/saned.socket 644 lib/systemd/system
vinstall ${FILESDIR}/saned@.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/saned.socket 644 usr/lib/systemd/system
}