[arch-commits] Commit in python-pygithub/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Nov 18 07:02:47 UTC 2015


    Date: Wednesday, November 18, 2015 @ 08:02:47
  Author: fyan
Revision: 147053

archrelease: copy trunk to community-any

Added:
  python-pygithub/repos/community-any/
  python-pygithub/repos/community-any/PKGBUILD
    (from rev 147052, python-pygithub/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-pygithub/repos/community-any/PKGBUILD (from rev 147052, python-pygithub/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-11-18 07:02:47 UTC (rev 147053)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pygithub
+pkgname=('python-pygithub' 'python2-pygithub')
+pkgver=1.26.0
+pkgrel=1
+pkgdesc="Use the full Github API v3"
+arch=('any')
+license=('LGPL')
+url="http://jacquev6.github.com/PyGithub"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/PyGithub/PyGithub.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a PyGithub{,-py2}
+}
+
+build() {
+  cd "$srcdir/PyGithub"
+  python setup.py build
+
+  cd "$srcdir/PyGithub-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/PyGithub"
+  python setup.py test
+
+  cd "$srcdir/PyGithub-py2"
+  python2 setup.py test
+}
+
+package_python-pygithub() {
+  depends=('python')
+
+  cd PyGithub
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-pygithub() {
+  depends=('python2')
+
+  cd PyGithub-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list