2012-05-18 19:01:18 +00:00
|
|
|
# Template file for 'hplip'
|
|
|
|
pkgname=hplip
|
2013-11-10 06:18:01 +00:00
|
|
|
version=3.13.11
|
2014-06-08 09:52:36 +00:00
|
|
|
revision=3
|
2014-01-01 15:10:11 +00:00
|
|
|
#XXX: pyqt pkgs for python gui
|
|
|
|
hostmakedepends="pkg-config automake libtool"
|
|
|
|
makedepends="python-devel libxml2-python cups-devel
|
|
|
|
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
|
|
|
|
dbus-devel polkit-devel foomatic-db foomatic-db-engine desktop-file-utils"
|
|
|
|
depends="python foomatic-db foomatic-db-engine desktop-file-utils"
|
|
|
|
conf_files="/etc/hp/hplip.conf"
|
|
|
|
make_dirs="/var/lib/hp 0755 root root"
|
2014-04-04 15:54:52 +00:00
|
|
|
lib32disabled=yes
|
2012-05-18 19:01:18 +00:00
|
|
|
short_desc="HP Linux Imaging and Printing"
|
2014-06-08 09:52:36 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-09 16:46:02 +00:00
|
|
|
homepage="http://hplipopensource.com/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
2013-11-10 06:18:01 +00:00
|
|
|
checksum=1ea0ed020ab54e08620fe6ea7c30e93dbb8be505f2e6994e7222a7be63ca3b34
|
2012-05-18 19:01:18 +00:00
|
|
|
|
2012-12-03 09:50:58 +00: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 08:41:55 +00:00
|
|
|
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp
|
2012-12-03 09:50:58 +00:00
|
|
|
mv ${i}.temp ${i}
|
|
|
|
done
|
|
|
|
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --disable-gui-build \
|
2012-12-03 09:50:58 +00: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 \
|
|
|
|
--enable-pp-build \
|
|
|
|
--enable-udev-acl-rules
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-01-08 10:54:16 +00:00
|
|
|
make ${makejobs}
|
2012-12-03 09:50:58 +00: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 06:18:01 +00:00
|
|
|
rm -rf ${DESTDIR}/var
|
2012-05-18 19:01:18 +00:00
|
|
|
}
|