updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hplip-all / PKGBUILD
blob5d64d591e903b576ad50a8f19e3ec44f50d4cd90
1 # $Id: PKGBUILD 116953 2011-03-26 16:48:46Z tpowa $
2 # Maintainer : Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Morgan LEFIEUX <comete@archlinuxfr.org>
5 pkgname=hplip-all
6 pkgname2=hplip
7 pkgver=3.11.5
8 pkgrel=1
9 pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
10 arch=('x86_64')
11 url="http://hplipopensource.com"
12 license=('GPL')
13 makedepends=('python2-qt' 'pygobject' 'pkgconfig' 'sane' 'rpcbind' 'cups')
14 depends=('python2' 'ghostscript>=8.64-6' 'foomatic-db' 'foomatic-db-engine'
15         'libcups>=1.3.10-3' 'net-snmp>=5.6.1' 'libusb-compat')
16 optdepends=('cups: for printing support'
17             'dbus-python: for dbus support'
18             'sane: for scanner support'
19             'python-imaging: for commandline scanning support'
20             'python-notify: for Desktop notification support'
21             'rpcbind: for network support'
22             'python2-qt: for running hp-toolbox'
23             'pygobject: for running hp-toolbox')
24 replaces=('hpijs')
25 options=('!libtool')
26 install=hplip.install
27 source=(http://downloads.sourceforge.net/${pkgname2}/$pkgname2-$pkgver.tar.gz)
29 build() {
30  cd "$srcdir/$pkgname2-$pkgver"
31  #find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
32  export PYTHON=`which python2`
33  ./configure --with-hpppddir=/usr/share/ppd/HP \
34              --libdir=/usr/lib64 \
35              --prefix=/usr \
36              --enable-qt4 \
37              --enable-doc-build \
38              --enable-cups-ppd-install \
39              --enable-foomatic-drv-install \
40              --enable-foomatic-ppd-install \
41              --enable-hpijs-install \
42              --enable-policykit \
43              --enable-cups-drv-install \
44              --enable-hpcups-install \
45              --enable-network-build \
46              --enable-dbus-build \
47              --enable-scan-build \
48              --enable-fax-build
50  make
53 package() {
54  cd "$srcdir/$pkgname2-$pkgver"
55  make DESTDIR="$pkgdir/" install
57  #rm -rf "$pkgdir/etc/sane.d"
58  # remove autostart of hp-daemon
59  #rm -r "$pkgdir/etc/xdg"
60  # move udev rules to /lib/udev/rules.d
61  #mkdir -p "$pkgdir/lib/udev/rules.d"
62  #mv "$pkgdir"/etc/udev/rules.d/* "$pkgdir/lib/udev/rules.d/"
63  #rm -r "$pkgdir/etc/udev"
64  # remove lp user, it's not used on archlinux
65  #sed -i 's|OWNER="lp", ||g' "$pkgdir/lib/udev/rules.d/40-hplip.rules"
66  # fix sysfs rules
67  #sed -i -e "s|SYSFS|ATTRS|g" -e "s|sysfs|attrs|g" "$pkgdir/lib/udev/rules.d/56-hpmud_support.rules"
69 md5sums=('0a3d0f46ec89857b4c0feea6923864f1')