mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
37 lines
1018 B
Bash
37 lines
1018 B
Bash
pkgname=python2-mechanize
|
|
_pkgname=mechanize
|
|
pkgver=0.3.7
|
|
pkgrel=1
|
|
pkgdesc="Stateful programmatic web browsing in Python"
|
|
arch=(any)
|
|
url="http://wwwsearch.sourceforge.net/mechanize/"
|
|
license=(BSD ZPL)
|
|
depends=('python2' 'python2-html5lib')
|
|
optdepends=('python2-html5-parser: faster parsing of HTML')
|
|
makedepends=(python2-setuptools)
|
|
checkdepends=('python2-zope-interface' 'python2-twisted')
|
|
source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
|
|
sha256sums=('ee66e1a6af790898894dd0318914ced413d94f46a54f881eb337081ff9702cd2'
|
|
'SKIP')
|
|
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid@kovidgoyal.net>
|
|
|
|
build() {
|
|
cd "mechanize-$pkgver"
|
|
|
|
python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "mechanize-$pkgver"
|
|
|
|
python2 run_tests.py
|
|
}
|
|
|
|
package() {
|
|
cd "mechanize-$pkgver"
|
|
|
|
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|