hplip: preserve SANE configuration
This commit is contained in:
parent
c9998042a9
commit
686aed9f5b
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hplip'
|
# Template file for 'hplip'
|
||||||
pkgname=hplip
|
pkgname=hplip
|
||||||
version=3.20.6
|
version=3.20.6
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
pycompile_dirs="usr/share/hplip"
|
pycompile_dirs="usr/share/hplip"
|
||||||
configure_args="
|
configure_args="
|
||||||
|
@ -47,8 +47,11 @@ do_install() {
|
||||||
sed -i Makefile -e "s;ppd/hpcups/\\*.ppd.gz;;g"
|
sed -i Makefile -e "s;ppd/hpcups/\\*.ppd.gz;;g"
|
||||||
make locatedriverdir=/usr/libexec/hplip dat2drvdir=/usr/libexec/hplip \
|
make locatedriverdir=/usr/libexec/hplip dat2drvdir=/usr/libexec/hplip \
|
||||||
rulesdir=/usr/lib/udev/rules.d DESTDIR=${DESTDIR} install
|
rulesdir=/usr/lib/udev/rules.d DESTDIR=${DESTDIR} install
|
||||||
# remove config provided by sane and autostart of hp-daemon
|
# Move sane config to dll.d to avoid conflicts
|
||||||
rm -rf ${DESTDIR}/etc/{sane.d,xdg}
|
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
|
# remove unwanted files
|
||||||
rm -f ${DESTDIR}/usr/share/doc/hplip-${version}/{copyright,README_LIBJPG,COPYING}
|
rm -f ${DESTDIR}/usr/share/doc/hplip-${version}/{copyright,README_LIBJPG,COPYING}
|
||||||
# remove HAL .fdi file because HAL is no longer used
|
# remove HAL .fdi file because HAL is no longer used
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue