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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 01:55:10 UTC 2019


    Date: Monday, November 4, 2019 @ 01:55:10
  Author: felixonmars
Revision: 522931

archrelease: copy trunk to community-staging-any

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

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

Copied: python-mechanize/repos/community-staging-any/PKGBUILD (from rev 522930, python-mechanize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 01:55:10 UTC (rev 522931)
@@ -0,0 +1,61 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Chris Brannon <cmbrannon79 at gmail.com>
+# Contributor: Douglas Soares de Andrade
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+_pkgname=mechanize
+pkgbase=python-mechanize
+pkgname=(python-mechanize python2-mechanize)
+pkgver=0.4.3
+pkgrel=2
+epoch=1
+pkgdesc='Stateful programmatic web browsing in Python'
+arch=('any')
+url="https://github.com/python-mechanize/mechanize"
+license=('BSD')
+makedepends=('python-setuptools' 'python-html5lib'
+              'python2-setuptools' 'python2-html5lib')
+checkdepends=('python-zope-interface' 'python-twisted'
+              'python2-zope-interface' 'python2-twisted')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
+sha256sums=('d7d7068be5e1b3069575c98c870aaa96dd26603fe8c8697b470e2f65259fddbf'
+            'SKIP')
+b2sums=('fac712bb2cfe55270a2a8830c084e7d6e5e8fa279ce0eca46af6860b12a61863e5668ee1c92a129d4f28858eb485428ffdea59d1091da29871ce592753ec9a3a'
+        'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
+
+build() {
+  cd "mechanize-$pkgver"
+
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd "mechanize-$pkgver"
+
+  python setup.py test
+  python2 setup.py test
+}
+
+package_python-mechanize() {
+  depends=('python-html5lib')
+  optdepends=('python-html5-parser: faster parsing of HTML')
+  cd "mechanize-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-mechanize() {
+  depends=('python2-html5lib')
+  optdepends=('python2-html5-parser: faster parsing of HTML')
+  cd "mechanize-$pkgver"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list