[arch-commits] Commit in pycups/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:19:49 UTC 2019
Date: Friday, October 25, 2019 @ 15:19:48
Author: felixonmars
Revision: 365614
archrelease: copy trunk to staging-x86_64
Added:
pycups/repos/staging-x86_64/
pycups/repos/staging-x86_64/PKGBUILD
(from rev 365613, pycups/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: pycups/repos/staging-x86_64/PKGBUILD (from rev 365613, pycups/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-25 15:19:48 UTC (rev 365614)
@@ -0,0 +1,42 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: nesl247 <nesl247 at gmail.com>
+
+pkgbase=pycups
+pkgname=('python2-pycups' 'python-pycups')
+pkgver=1.9.74
+pkgrel=2
+arch=('x86_64')
+url="http://cyberelk.net/tim/software/pycups/"
+license=('GPL')
+makedepends=('libcups' 'python2' 'python')
+source=(https://github.com/zdohnal/pycups/archive/${pkgver}.tar.gz)
+sha256sums=('d5b5e4058757d1c090c85ed2ee7e5c2c1785976dc934a6144dbf425398304850')
+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