2012-05-18 19:01:18 +00:00
|
|
|
# Template file for 'hplip'
|
|
|
|
pkgname=hplip
|
2012-12-03 09:50:58 +00:00
|
|
|
version=3.12.11
|
2013-01-08 09:10:40 +00:00
|
|
|
revision=2
|
2012-05-18 19:01:18 +00:00
|
|
|
short_desc="HP Linux Imaging and Printing"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-07-09 16:46:02 +00:00
|
|
|
homepage="http://hplipopensource.com/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
2012-12-03 09:50:58 +00:00
|
|
|
checksum=c5b81167b21aa4ee6bdf3f5c120bfa050d0c794608da8bcc32e2580234919ffa
|
2012-05-18 19:01:18 +00:00
|
|
|
|
2012-12-03 09:50:58 +00:00
|
|
|
#XXX: pyqt pkgs for python gui
|
|
|
|
makedepends="pkg-config automake libtool python-devel libxml2-python cups-devel
|
2013-01-08 09:10:40 +00:00
|
|
|
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
|
2013-04-12 13:42:53 +00:00
|
|
|
dbus-devel polkit-devel python foomatic-db foomatic-db-engine desktop-file-utils"
|
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
|
|
|
|
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() {
|
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
|
2012-05-18 19:01:18 +00:00
|
|
|
}
|
2013-04-12 13:42:53 +00:00
|
|
|
|
|
|
|
hplip_package() {
|
|
|
|
depends="python foomatic-db foomatic-db-engine desktop-file-utils"
|
|
|
|
conf_files="/etc/hp/hplip.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|