2012-05-18 21:01:18 +02:00
|
|
|
# Template file for 'hplip'
|
|
|
|
pkgname=hplip
|
2015-06-10 08:16:42 +02:00
|
|
|
version=3.15.6
|
2015-06-16 00:16:16 +02:00
|
|
|
revision=2
|
2014-01-01 16:10:11 +01:00
|
|
|
#XXX: pyqt pkgs for python gui
|
2015-03-24 16:18:03 +01:00
|
|
|
hostmakedepends="pkg-config automake libtool python"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libressl-devel python-devel libxml2-python cups-devel
|
2014-01-01 16:10:11 +01:00
|
|
|
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
|
2014-10-17 08:36:57 +02:00
|
|
|
dbus-devel polkit-devel"
|
2015-04-08 11:43:55 +02:00
|
|
|
depends="python-gobject2 python-dbus foomatic-db foomatic-db-engine desktop-file-utils"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/hp/hplip.conf"
|
|
|
|
make_dirs="/var/lib/hp 0755 root root"
|
2012-05-18 21:01:18 +02:00
|
|
|
short_desc="HP Linux Imaging and Printing"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-07-09 18:46:02 +02:00
|
|
|
homepage="http://hplipopensource.com/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
2015-06-10 08:16:42 +02:00
|
|
|
checksum=30c513ee65aa5b342d8074ff89439c0827c35191683727335738d8bc0f9776c9
|
2012-05-18 21:01:18 +02:00
|
|
|
|
2015-03-24 16:18:03 +01:00
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
|
|
|
2012-12-03 10:50:58 +01:00
|
|
|
do_configure() {
|
|
|
|
# https://bugs.archlinux.org/task/30085 - hack found in Gentoo
|
|
|
|
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
|
|
|
|
# The hpcups driver does not use foomatic-rip
|
|
|
|
local i
|
|
|
|
for i in ppd/hpijs/*.ppd.gz ; do
|
|
|
|
rm -f ${i}.temp
|
2013-05-26 10:41:55 +02:00
|
|
|
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp
|
2012-12-03 10:50:58 +01:00
|
|
|
mv ${i}.temp ${i}
|
|
|
|
done
|
|
|
|
|
2015-03-24 16:18:03 +01:00
|
|
|
libtoolize -f
|
|
|
|
autoreconf -fi || true
|
|
|
|
|
2015-06-16 00:16:16 +02:00
|
|
|
# do not install systemd service file
|
|
|
|
sed -i '/[[:space:]]install-dist_rulessystemDATA/s,install-dist_rulessystemDATA,,' Makefile.in
|
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --disable-gui-build \
|
2012-12-03 10:50:58 +01:00
|
|
|
--disable-foomatic-rip-hplip-install \
|
|
|
|
--enable-foomatic-ppd-install \
|
|
|
|
--enable-hpcups-install \
|
|
|
|
--enable-new-hpcups \
|
|
|
|
--enable-cups-ppd-install \
|
|
|
|
--enable-cups-drv-install \
|
|
|
|
--enable-hpijs-install \
|
|
|
|
--enable-foomatic-drv-install \
|
2015-04-08 11:43:55 +02:00
|
|
|
--enable-pp-build \
|
|
|
|
--with-mimedir=/usr/share/cups/mime
|
2012-12-03 10:50:58 +01:00
|
|
|
}
|
|
|
|
do_build() {
|
2013-01-08 11:54:16 +01:00
|
|
|
make ${makejobs}
|
2012-12-03 10:50:58 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make 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 HAL .fdi file because HAL is no longer used
|
|
|
|
rm -rf ${DESTDIR}/usr/share/hal
|
2013-11-10 07:18:01 +01:00
|
|
|
rm -rf ${DESTDIR}/var
|
2012-05-18 21:01:18 +02:00
|
|
|
}
|