[arch-commits] Commit in system-config-printer/repos (4 files)

Eric Bélanger eric at nymeria.archlinux.org
Mon Apr 14 17:50:52 UTC 2014


    Date: Monday, April 14, 2014 @ 19:50:52
  Author: eric
Revision: 210368

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  system-config-printer/repos/testing-i686/
  system-config-printer/repos/testing-i686/PKGBUILD
    (from rev 210367, system-config-printer/trunk/PKGBUILD)
  system-config-printer/repos/testing-x86_64/
  system-config-printer/repos/testing-x86_64/PKGBUILD
    (from rev 210367, system-config-printer/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

Copied: system-config-printer/repos/testing-i686/PKGBUILD (from rev 210367, system-config-printer/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2014-04-14 17:50:52 UTC (rev 210368)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=system-config-printer
+pkgver=1.4.4
+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')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils')
+optdepends=('libgnome-keyring: password management'
+            'pysmbc: SMB browser support')
+source=(http://cyberelk.net/tim/data/${pkgname}/${pkgver%*.*}/${pkgname}-${pkgver}.tar.xz{,.sig})
+md5sums=('229c6ea422748a0fd7e533bba25595fc'
+         '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 \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --with-udev-rules
+
+  make udevhelperdir=/usr/lib/udev
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" udevhelperdir=/usr/lib/udev \
+    udevrulesdir=/usr/lib/udev/rules.d install
+
+  # Compile *.pyc
+  find "${pkgdir}" -name '*.py' -exec python2 -mpy_compile {} +
+  # Compile *.pyo
+  find "${pkgdir}" -name '*.py' -exec python2 -O -mpy_compile {} +
+}

Copied: system-config-printer/repos/testing-x86_64/PKGBUILD (from rev 210367, system-config-printer/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2014-04-14 17:50:52 UTC (rev 210368)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=system-config-printer
+pkgver=1.4.4
+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')
+makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils')
+optdepends=('libgnome-keyring: password management'
+            'pysmbc: SMB browser support')
+source=(http://cyberelk.net/tim/data/${pkgname}/${pkgver%*.*}/${pkgname}-${pkgver}.tar.xz{,.sig})
+md5sums=('229c6ea422748a0fd7e533bba25595fc'
+         '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 \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --with-udev-rules
+
+  make udevhelperdir=/usr/lib/udev
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" udevhelperdir=/usr/lib/udev \
+    udevrulesdir=/usr/lib/udev/rules.d install
+
+  # Compile *.pyc
+  find "${pkgdir}" -name '*.py' -exec python2 -mpy_compile {} +
+  # Compile *.pyo
+  find "${pkgdir}" -name '*.py' -exec python2 -O -mpy_compile {} +
+}




More information about the arch-commits mailing list