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

Eric Bélanger eric at archlinux.org
Mon Oct 20 01:59:04 UTC 2014


    Date: Monday, October 20, 2014 @ 03:59:04
  Author: eric
Revision: 224850

upgpkg: system-config-printer 1.5.3-1

Upstream update, Clean up PKGBUILD

Modified:
  system-config-printer/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++---------------------
 1 file changed, 11 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-10-19 23:36:05 UTC (rev 224849)
+++ PKGBUILD	2014-10-20 01:59:04 UTC (rev 224850)
@@ -3,46 +3,36 @@
 # Contributor: Andrea Scarpino <andrea at archlinux.org>
 
 pkgname=system-config-printer
-pkgver=1.4.4
+pkgver=1.5.3
 pkgrel=1
 pkgdesc="A CUPS printer configuration tool and status applet"
 url="http://cyberelk.net/tim/software/system-config-printer/"
 arch=('i686' 'x86_64')
 license=('GPL')
-depends=('pycups' 'python2-dbus' 'python2-pycurl' 'python2-gobject2' 'libnotify'
-         'gnome-icon-theme'  'python2-gobject' 'gtk3')
+depends=('python-pycups' 'python-dbus' 'python-pycurl' 'python-gobject2' 'libnotify'
+         'gnome-icon-theme'  'python-gobject' 'gtk3' 'python-cairo' 'python-packagekit')
 makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils')
 optdepends=('libgnome-keyring: password management'
-            'pysmbc: SMB browser support')
+            'python-pysmbc: SMB browser support')
 source=(http://cyberelk.net/tim/data/${pkgname}/${pkgver%*.*}/${pkgname}-${pkgver}.tar.xz{,.sig})
-md5sums=('229c6ea422748a0fd7e533bba25595fc'
+md5sums=('ffedc4d9d175163e1b0e9ddfef51578d'
          'SKIP')
 
-prepare() {
-  cd ${pkgname}-${pkgver}
-  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-    $(find . -name '*.py')
-  sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" udev/udev-add-printer
-}
-
 build() {
   cd ${pkgname}-${pkgver}
-  PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
+  ./configure --prefix=/usr \
     --sbindir=/usr/bin \
     --sysconfdir=/etc \
-    --with-udev-rules
-
-  make udevhelperdir=/usr/lib/udev
+    --with-udevdir=/usr/lib/udev --with-udev-rules 
+  make
 }
 
 package() {
   cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" udevhelperdir=/usr/lib/udev \
-    udevrulesdir=/usr/lib/udev/rules.d install
+  make DESTDIR="${pkgdir}" install
 
   # Compile *.pyc
-  find "${pkgdir}" -name '*.py' -exec python2 -mpy_compile {} +
+  find "${pkgdir}" -name '*.py' -exec python -mpy_compile {} +
   # Compile *.pyo
-  find "${pkgdir}" -name '*.py' -exec python2 -O -mpy_compile {} +
+  find "${pkgdir}" -name '*.py' -exec python -O -mpy_compile {} +
 }



More information about the arch-commits mailing list