hplip: preserve SANE configuration

This commit is contained in:
Andrew J. Hesford 2020-07-30 08:06:07 -04:00
parent c9998042a9
commit 686aed9f5b

View file

@ -1,7 +1,7 @@
# Template file for 'hplip'
pkgname=hplip
version=3.20.6
revision=1
revision=2
build_style=gnu-configure
pycompile_dirs="usr/share/hplip"
configure_args="
@ -47,8 +47,11 @@ do_install() {
sed -i Makefile -e "s;ppd/hpcups/\\*.ppd.gz;;g"
make locatedriverdir=/usr/libexec/hplip dat2drvdir=/usr/libexec/hplip \
rulesdir=/usr/lib/udev/rules.d DESTDIR=${DESTDIR} install
# remove config provided by sane and autostart of hp-daemon
rm -rf ${DESTDIR}/etc/{sane.d,xdg}
# Move sane config to dll.d to avoid conflicts
vmkdir etc/sane.d/dll.d
mv ${DESTDIR}/etc/sane.d/dll.conf ${DESTDIR}/etc/sane.d/dll.d/hplip
# remove autostart of hp-daemon
rm -rf ${DESTDIR}/etc/xdg
# remove unwanted files
rm -f ${DESTDIR}/usr/share/doc/hplip-${version}/{copyright,README_LIBJPG,COPYING}
# remove HAL .fdi file because HAL is no longer used