Date: Sunday, April 9, 2023 @ 18:39:27
Author: felixonmars
Revision: 1443432
archrelease: copy trunk to community-staging-any
Added:
python-mechanize/repos/community-staging-any/
python-mechanize/repos/community-staging-any/PKGBUILD
(from rev 1443430, python-mechanize/trunk/PKGBUILD)
python-mechanize/repos/community-staging-any/keys/
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-mechanize/repos/community-staging-any/PKGBUILD (from rev
1443430, python-mechanize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 18:39:27 UTC (rev 1443432)
@@ -0,0 +1,45 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+# Contributor: Alexander F Rødseth <[email protected]>
+# Contributor: Chris Brannon <[email protected]>
+# Contributor: Douglas Soares de Andrade
+# Contributor: Roberto Alsina <[email protected]>
+
+_pkgname=mechanize
+pkgname=python-mechanize
+pkgver=0.4.8
+pkgrel=2
+epoch=1
+pkgdesc='Stateful programmatic web browsing in Python'
+arch=('any')
+url="https://github.com/python-mechanize/mechanize"
+license=('BSD')
+depends=('python-html5lib')
+makedepends=('python-setuptools')
+checkdepends=('python-zope-interface' 'python-twisted')
+optdepends=('python-html5-parser: faster parsing of HTML')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
+sha256sums=('5e86ac0777357e006eb04cd28f7ed9f811d48dffa603d3891ac6d2b92280dc91'
+ 'SKIP')
+b2sums=('bd91738092ac473ee6e65ee5f175479515f735a0433b112241f17061adf7e60ef6fa410fa549f088390b6ef6c8b2ff95e00335a626322ad170c88923c96e8e44'
+ 'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New
longer key) <[email protected]>
+
+build() {
+ cd "mechanize-$pkgver"
+
+ python setup.py build
+}
+
+check() {
+ cd "mechanize-$pkgver"
+
+ python run_tests.py
+}
+
+package() {
+ cd "mechanize-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}