hplip: update to 3.19.1.

move binaries to /usr/libexec
switch to python3
resolves #8216
This commit is contained in:
Helmut Pozimski 2019-02-03 18:51:41 +01:00
parent fe8d02d0d6
commit 89cb540ac1

View file

@ -1,6 +1,6 @@
# Template file for 'hplip'
pkgname=hplip
version=3.18.12
version=3.19.1
revision=1
build_style=gnu-configure
pycompile_dirs="usr/share/hplip"
@ -20,20 +20,20 @@ configure_args="
--with-mimedir=/usr/share/cups/mime"
conf_files="/etc/hp/hplip.conf"
make_dirs="/var/lib/hp 0755 root root"
hostmakedepends="pkg-config automake libtool python"
makedepends="libressl-devel python-devel libxml2-python cups-devel sane-devel
hostmakedepends="pkg-config automake libtool python3"
makedepends="libressl-devel python3-devel libxml2-python3 cups-devel sane-devel
ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel dbus-devel"
depends="python-gobject2 python-dbus desktop-file-utils
depends="python3-gobject python3-dbus desktop-file-utils
foomatic-db foomatic-db-engine"
short_desc="HP Linux Imaging and Printing"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only, BSD-3-Clause, MIT"
homepage="https://developers.hp.com/hp-linux-imaging-and-printing"
distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
checksum=3ba5278d5fcaf83ecd04d16850f2f24c43c78c1189c15ae32cae756360c2fabd
checksum=f567b8a405bc8eb841f4b78c1543f761160bf3e3225dd8cce1a1f7510ec181ce
conflicts="hplip-gui"
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/${py3_inc}"
pre_configure() {
export AUTOMAKE='automake --foreign'
@ -44,7 +44,8 @@ pre_configure() {
do_install() {
# remove wildcard install of ppd files to avoid errors when overwriting
sed -i Makefile -e "s;ppd/hpcups/\\*.ppd.gz;;g"
make rulesdir=/usr/lib/udev/rules.d DESTDIR=${DESTDIR} install
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}
# remove unwanted files
@ -67,8 +68,8 @@ do_install() {
}
hplip-gui_package() {
depends="python-gobject2 python-dbus desktop-file-utils
foomatic-db foomatic-db-engine python-PyQt5-dbus"
depends="python3-gobject python3-dbus desktop-file-utils
foomatic-db foomatic-db-engine python3-PyQt5-dbus"
short_desc+=" (with GUI)"
conflicts="hplip"
pkg_install() {