[arch-commits] Commit in hplip/trunk (PKGBUILD)

Rémy Oudompheng remy at archlinux.org
Sat Sep 4 05:36:12 UTC 2010


    Date: Saturday, September 4, 2010 @ 01:36:12
  Author: remy
Revision: 89794

upgpkg: hplip 3.10.6-2
Rebuild for python2.

Modified:
  hplip/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-04 05:36:10 UTC (rev 89793)
+++ PKGBUILD	2010-09-04 05:36:12 UTC (rev 89794)
@@ -4,13 +4,13 @@
 
 pkgname=hplip
 pkgver=3.10.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet."
 arch=('i686' 'x86_64')
 url="http://hplipopensource.com"
 license=('GPL')
 makedepends=('pyqt' 'pygobject' 'pkgconfig' 'sane' 'rpcbind' 'dbus-python' 'cups')
-depends=('python' 'ghostscript>=8.64-6' 'foomatic-db' 'foomatic-db-engine'
+depends=('python2' 'ghostscript>=8.64-6' 'foomatic-db' 'foomatic-db-engine'
 	'libcups>=1.3.10-3' 'net-snmp>=5.5')
 replaces=('hpijs')
 options=('!libtool')
@@ -25,6 +25,7 @@
 
 build() {
  cd $srcdir/$pkgname-$pkgver
+ find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
  ./configure --prefix=/usr \
              --enable-qt4 \
              --enable-foomatic-rip-hplip-install \
@@ -35,7 +36,10 @@
              --enable-foomatic-drv-install \
              --enable-udev-acl-rules
 
- make || return 1
+ make
+}
+package() {
+ cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir/ install
 
  rm -rf $pkgdir/etc/sane.d




More information about the arch-commits mailing list