[arch-commits] Commit in python-mechanize/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Wed Jan 10 03:55:36 UTC 2018


    Date: Wednesday, January 10, 2018 @ 03:55:35
  Author: eschwartz
Revision: 280826

upgpkg: python-mechanize 1:0.3.6-1

upstream release

Modified:
  python-mechanize/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-10 03:43:44 UTC (rev 280825)
+++ PKGBUILD	2018-01-10 03:55:35 UTC (rev 280826)
@@ -1,5 +1,7 @@
 # $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# 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>
@@ -7,7 +9,7 @@
 _pkgname=mechanize
 pkgbase=python-mechanize
 pkgname=python2-mechanize
-pkgver=0.3.5
+pkgver=0.3.6
 pkgrel=1
 epoch=1
 pkgdesc='Stateful programmatic web browsing in Python'
@@ -15,23 +17,31 @@
 url="https://github.com/python-mechanize/mechanize"
 license=('BSD')
 depends=('python2' 'python2-html5lib')
+optdepends=('python2-html5-parser: faster parsing of HTML')
 makedepends=('python2-distribute')
 checkdepends=('python2-zope-interface' 'python2-twisted')
 source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
-sha256sums=('d4f999b5a3028c900cb0e6ad3c996c73e3c69a664e6575493258104fa84d7166'
+sha256sums=('654e705157156c1f316601ea4f7ab27e96713a8a4dabe1604e6cc8d48e0aa1e8'
             'SKIP')
-validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
 
-package_python2-mechanize() {
+build() {
   cd "mechanize-$pkgver"
 
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  python2 setup.py build
 }
 
 check() {
   cd "mechanize-$pkgver"
+
   python2 run_tests.py
 }
 
+package_python2-mechanize() {
+  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