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

Tobias Powalowski tpowa at archlinux.org
Sun Jan 31 09:16:30 UTC 2010


    Date: Sunday, January 31, 2010 @ 04:16:30
  Author: tpowa
Revision: 66448

upgpkg: hplip 3.9.12-4
    added udev acl and fixed udev rule syntax

Modified:
  hplip/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-31 09:15:46 UTC (rev 66447)
+++ PKGBUILD	2010-01-31 09:16:30 UTC (rev 66448)
@@ -4,7 +4,7 @@
 
 pkgname=hplip
 pkgver=3.9.12
-pkgrel=3
+pkgrel=4
 pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet."
 arch=('i686' 'x86_64')
 url="http://hplipopensource.com"
@@ -25,10 +25,16 @@
 
 build() {
  cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr --enable-qt4 --enable-foomatic-rip-hplip-install \
-             --enable-foomatic-ppd-install --enable-hpcups-install \
-             --enable-cups-drv-install --enable-hpijs-install \
-             --enable-foomatic-drv-install
+ ./configure --prefix=/usr \
+             --enable-qt4 \
+             --enable-foomatic-rip-hplip-install \
+             --enable-foomatic-ppd-install \
+             --enable-hpcups-install \
+             --enable-cups-drv-install \
+             --enable-hpijs-install \
+             --enable-foomatic-drv-install \
+             --enable-udev-acl-rules
+
  make || return 1
  make DESTDIR=$pkgdir/ install
 
@@ -40,6 +46,8 @@
  mv $pkgdir/etc/udev/rules.d/* $pkgdir/lib/udev/rules.d/
  rm -r $pkgdir/etc/udev
  # remove lp user, it's not used on archlinux
- sed -i 's|OWNER="lp", ||g' $pkgdir/lib/udev/rules.d/55-hpmud.rules
+ sed -i 's|OWNER="lp", ||g' $pkgdir/lib/udev/rules.d/40-hplip.rules || return 1
+ # fix sysfs rules
+ sed -i -e "s|SYSFS|ATTRS|g" -e "s|sysfs|attrs|g" $pkgdir/lib/udev/rules.d/56-hpmud_support.rules || return 1
 }
 md5sums=('2b0906b4a57b437988829557ca62adfd')




More information about the arch-commits mailing list