hplip: add missing runtime python deps; use --with-mimedir.

This commit is contained in:
Juan RP 2015-04-08 11:43:55 +02:00
parent f074d10a6b
commit 2968de8c66

View file

@ -1,13 +1,13 @@
# Template file for 'hplip'
pkgname=hplip
version=3.15.2
revision=4
revision=5
#XXX: pyqt pkgs for python gui
hostmakedepends="pkg-config automake libtool python"
makedepends="libressl-devel python-devel libxml2-python cups-devel
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
dbus-devel polkit-devel"
depends="python foomatic-db foomatic-db-engine desktop-file-utils"
depends="python-gobject2 python-dbus foomatic-db foomatic-db-engine desktop-file-utils"
conf_files="/etc/hp/hplip.conf"
make_dirs="/var/lib/hp 0755 root root"
short_desc="HP Linux Imaging and Printing"
@ -42,15 +42,14 @@ do_configure() {
--enable-cups-drv-install \
--enable-hpijs-install \
--enable-foomatic-drv-install \
--enable-pp-build
--enable-pp-build \
--with-mimedir=/usr/share/cups/mime
}
do_build() {
make ${makejobs}
}
do_install() {
make rulesdir=/usr/lib/udev/rules.d DESTDIR=${DESTDIR} install
vmkdir usr/share/cups/mime
mv ${DESTDIR}/etc/cups/*.{types,convs} ${DESTDIR}/usr/share/cups/mime
# remove config provided by sane and autostart of hp-daemon
rm -rf ${DESTDIR}/etc/{sane.d,xdg}
# remove HAL .fdi file because HAL is no longer used