[arch-commits] Commit in pycups/repos (4 files)

Felix Yan fyan at archlinux.org
Sun Sep 20 09:47:54 UTC 2015


    Date: Sunday, September 20, 2015 @ 11:47:54
  Author: fyan
Revision: 246998

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

Added:
  pycups/repos/staging-i686/
  pycups/repos/staging-i686/PKGBUILD
    (from rev 246997, pycups/trunk/PKGBUILD)
  pycups/repos/staging-x86_64/
  pycups/repos/staging-x86_64/PKGBUILD
    (from rev 246997, pycups/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   45 +++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

Copied: pycups/repos/staging-i686/PKGBUILD (from rev 246997, pycups/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-09-20 09:47:54 UTC (rev 246998)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: nesl247 <nesl247 at gmail.com>
+
+pkgbase=pycups
+pkgname=('python2-pycups' 'python-pycups')
+pkgver=1.9.73
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://cyberelk.net/tim/software/pycups/"
+license=('GPL')
+makedepends=('libcups' 'python2' 'python')
+source=(http://cyberelk.net/tim/data/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+# md5sum: https://pypi.python.org/pypi/pycups
+md5sums=('ee0e7204d7a2ae942e2f4c4508afdbfb'
+         'SKIP')
+validpgpkeys=('02EA6349CE58E1BCAA8514F57955128DA3A1ABD3'  # Tim Waugh
+              '4629AFE960EC20BEC12E3104B7C20D079491EA63') # Tim Waugh <twaugh at redhat.com>
+
+prepare() {
+  cp -a ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+  cd "${srcdir}"/${pkgbase}-${pkgver}-python2
+  python2 setup.py build
+}
+
+package_python2-pycups() {
+  pkgdesc="Python 2 CUPS Bindings"
+  depends=('libcups' 'python2')
+
+  cd ${pkgbase}-${pkgver}-python2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python-pycups() {
+  pkgdesc="Python 3 CUPS Bindings"
+  depends=('libcups' 'python')
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+}

Copied: pycups/repos/staging-x86_64/PKGBUILD (from rev 246997, pycups/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-09-20 09:47:54 UTC (rev 246998)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: nesl247 <nesl247 at gmail.com>
+
+pkgbase=pycups
+pkgname=('python2-pycups' 'python-pycups')
+pkgver=1.9.73
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://cyberelk.net/tim/software/pycups/"
+license=('GPL')
+makedepends=('libcups' 'python2' 'python')
+source=(http://cyberelk.net/tim/data/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+# md5sum: https://pypi.python.org/pypi/pycups
+md5sums=('ee0e7204d7a2ae942e2f4c4508afdbfb'
+         'SKIP')
+validpgpkeys=('02EA6349CE58E1BCAA8514F57955128DA3A1ABD3'  # Tim Waugh
+              '4629AFE960EC20BEC12E3104B7C20D079491EA63') # Tim Waugh <twaugh at redhat.com>
+
+prepare() {
+  cp -a ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+  cd "${srcdir}"/${pkgbase}-${pkgver}-python2
+  python2 setup.py build
+}
+
+package_python2-pycups() {
+  pkgdesc="Python 2 CUPS Bindings"
+  depends=('libcups' 'python2')
+
+  cd ${pkgbase}-${pkgver}-python2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python-pycups() {
+  pkgdesc="Python 3 CUPS Bindings"
+  depends=('libcups' 'python')
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list