void-packages/srcpkgs/hplip/template
2012-12-03 10:50:58 +01:00

61 lines
2 KiB
Text

# Template file for 'hplip'
pkgname=hplip
version=3.12.11
revision=1
short_desc="HP Linux Imaging and Printing"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://hplipopensource.com/"
license="GPL-2"
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
checksum=c5b81167b21aa4ee6bdf3f5c120bfa050d0c794608da8bcc32e2580234919ffa
long_desc="
HPLIP (Hewlett-Packard Linux Imaging and Printing) is an HP-developed solution
for printing, scanning, and faxing with HP inkjet and laser based printers in
Linux. The HPLIP project provides printing support for 2,080 printer models,
including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business
Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP."
conf_files="/etc/hp/hplip.conf"
#XXX: pyqt pkgs for python gui
makedepends="pkg-config automake libtool python-devel libxml2-python cups-devel
sane-devel ghostscript-devel net-snmp-devel libusb-devel jpeg-devel
dbus-devel polkit-devel"
fulldepends="python foomatic-db foomatic-db-engine desktop-file-utils"
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
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
gzip > ${i}.temp || return 1
mv ${i}.temp ${i}
done
./configure ${CONFIGURE_SHARED_ARGS} --disable-gui-build \
--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() {
make ${makejobs}
}
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
}