[arch-commits] Commit in python-wikipedia/repos (2 files)

Jelle van der Waa jelle at archlinux.org
Sun Sep 20 12:07:01 UTC 2015


    Date: Sunday, September 20, 2015 @ 14:07:00
  Author: jelle
Revision: 141252

archrelease: copy trunk to community-staging-any

Added:
  python-wikipedia/repos/community-staging-any/
  python-wikipedia/repos/community-staging-any/PKGBUILD
    (from rev 141251, python-wikipedia/trunk/PKGBUILD)

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

Copied: python-wikipedia/repos/community-staging-any/PKGBUILD (from rev 141251, python-wikipedia/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 12:07:00 UTC (rev 141252)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Chuan Ji <jichuan89 at gmail.com>
+
+pkgbase=python-wikipedia
+pkgname=('python-wikipedia' 'python2-wikipedia')
+pkgver=1.4.0
+pkgrel=3
+pkgdesc='A Pythonic wrapper for the Wikipedia API'
+arch=('any')
+url='https://github.com/goldsmith/Wikipedia'
+license=('MIT')
+depends=('python-beautifulsoup4' 'python-requests')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/w/wikipedia/wikipedia-${pkgver}.tar.gz")
+sha256sums=('db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2')
+
+prepare() {
+  cp -r wikipedia-${pkgver} python-wikipedia-${pkgver}
+  mv wikipedia-${pkgver} python2-wikipedia-${pkgver}
+}
+
+build() {
+  cd python-wikipedia-${pkgver}
+
+  python setup.py build
+
+  cd ../python2-wikipedia-${pkgver}
+
+  python2 setup.py build
+}
+
+package_python-wikipedia() {
+  cd python-wikipedia-${pkgver}
+
+  python setup.py install --root="${pkgdir}" --optimize='1'
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses/python-wikipedia
+  install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/python-wikipedia/
+
+}
+
+package_python2-wikipedia() {
+  cd python2-wikipedia-${pkgver}
+
+  python2 setup.py install --root="${pkgdir}" --optimize='1'
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses/python2-wikipedia
+  install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/python2-wikipedia/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list