[arch-commits] Commit in system-config-printer/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Sat Sep 5 18:28:10 UTC 2009


    Date: Saturday, September 5, 2009 @ 14:28:10
  Author: andrea
Revision: 51186

upgpkg: system-config-printer 1.1.12-3
    fixed dependencies and makedepends

Modified:
  system-config-printer/trunk/PKGBUILD

----------+
 PKGBUILD |   44 +++++++++++++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-09-05 18:09:29 UTC (rev 51185)
+++ PKGBUILD	2009-09-05 18:28:10 UTC (rev 51186)
@@ -4,19 +4,16 @@
 pkgbase=system-config-printer
 pkgname=('system-config-printer-common'
 	'system-config-printer-gnome')
+#	'system-config-printer-udev)
 pkgver=1.1.12
 pkgrel=3
-pkgdesc="Pygtk CUPS Configuration"
+pkgdesc="A CUPS printer configuration tool and status applet"
 url="http://cyberelk.net/tim/software/system-config-printer/"
-arch=('i686' 'x86_64')
+arch=('any')
 license=('GPL')
-makedepends=(# the makedeps
-             'intltool' 'python>=2.6.2-5' 'xmlto' 'docbook-xsl' 'desktop-file-utils'
-	    # the deps from system-config-printer-common
-	    'pycups>=1.9.46-2' 'libxml2' 'dbus-python' 'pygobject'
-	    # the deps from system-config-printer-gnome
-	    'gnome-python') # 'python-notify' (community repo)
-source=(http://cyberelk.net/tim/data/$pkgbase/1.1/$pkgbase-$pkgver.tar.bz2)
+makedepends=('intltool>=0.40.6-1' 'python>=2.6.2-5' 'xmlto>=0.0.21-2' 'docbook-xsl>=1.74.0-1'
+	'desktop-file-utils>=0.15-1' 'libcups>=1.3.11-1' 'libxml2>=2.7.3-3') # libusb with system-config-printer-udev
+source=(http://cyberelk.net/tim/data/${pkgbase}/1.1/${pkgbase}-${pkgver}.tar.bz2)
 md5sums=('43be348b60651e79479b5c396d9f6003')
 
 build() {
@@ -31,7 +28,10 @@
 
 package_system-config-printer-common() {
   pkgdesc='Pygtk CUPS Configuration'
-  depends=('pycups>=1.9.46-2' 'libxml2' 'dbus-python' 'pygobject')
+  depends=('pycups>=1.9.46-2' 'dbus-python>=0.83.0' 'pysmbc>=1.0.6-2')
+  optdepends=('system-config-printer-gnome: for the GTK frontend'
+	'kdeadmin-system-config-printer-kde: for the administration tool in KDE System Settings')
+#	'system-config-printer-udev: for automatic disabling/enabling when printer is connected')
   replaces=('system-config-printer')
   provides=('system-config-printer')
 
@@ -52,7 +52,11 @@
 
   install -m755 pysmb.py \
     ${pkgdir}/usr/share/${pkgbase}/ || return 1
-  
+
+  install -d ${pkgdir}/etc/dbus-1/system.d/
+  install -m644 newprinternotification.conf \
+    ${pkgdir}/etc/dbus-1/system.d/ || return 1
+
   for file in build/lib/cupshelpers/*.py; do
     install -Dm644 $file \
       ${pkgdir}/usr/lib/python2.6/site-packages/cupshelpers/$(basename $file) || return 1
@@ -60,8 +64,8 @@
 }
 
 package_system-config-printer-gnome() {
-  pkgdesc='Pygtk CUPS Configuration - GNOME'
-  depends=('system-config-printer-common' 'gnome-python') #'python-notify' 
+  pkgdesc='A CUPS printer configuration tool and status applet - GTK frontend'
+  depends=('system-config-printer-common' 'gnome-python' 'gnome-icon-theme' 'pygobject' 'pygtk' 'libxml2' 'python-notify')
 
   cd ${srcdir}/${pkgbase}-${pkgver}
   make DESTDIR=${pkgdir} install || return 1
@@ -78,5 +82,19 @@
     statereason.py \
     XmlHelper.py \
     pysmb.py || return 1
+  rm ${pkgdir}/etc/dbus-1/system.d/newprinternotification.conf || return 1
   rm -r ${pkgdir}/usr/lib/python2.6/site-packages/cupshelpers/ || return 1
 }
+
+#package_system-config-printer-udev() {
+#  pkgdesc='A CUPS printer configuration tool and status applet - udev rules for auto-setup'
+#  depends=('udev' 'libusb' 'system-config-printer-common')
+#
+#  cd ${srcdir}/${pkgbase}-${pkgver}/udev
+#  install -d ${pkgdir}/lib/udev/rules.d
+#  gcc -o udev-configure-printer udev-configure-printer.c || return 1
+#  install -m755 udev-{add,configure}-printer \
+#    ${pkgdir}/lib/udev || return 1
+#  install -m644 70-printers.rules \
+#    ${pkgdir}/lib/udev/rules.d || return 1
+#}




More information about the arch-commits mailing list