mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:07:15 +08:00
[skip-ci] python2-mechanize: update to 0.3.7
This commit is contained in:
parent
6df8c1a53d
commit
ced42f622e
@ -1,27 +1,36 @@
|
|||||||
#
|
|
||||||
# Apps Packages for Chakra, part of chakra-project.org
|
|
||||||
#
|
|
||||||
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
|
|
||||||
# Contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
||||||
|
|
||||||
pkgname=python2-mechanize
|
pkgname=python2-mechanize
|
||||||
_pkgname=mechanize
|
_pkgname=mechanize
|
||||||
pkgver=0.2.5
|
pkgver=0.3.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Stateful programmatic web browsing in Python"
|
pkgdesc="Stateful programmatic web browsing in Python"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="http://wwwsearch.sourceforge.net/mechanize/"
|
url="http://wwwsearch.sourceforge.net/mechanize/"
|
||||||
license=(BSD ZPL)
|
license=(BSD ZPL)
|
||||||
depends=(python2)
|
depends=('python2' 'python2-html5lib')
|
||||||
replaces=(python-mechanize)
|
optdepends=('python2-html5-parser: faster parsing of HTML')
|
||||||
provides=(python-mechanize)
|
makedepends=(python2-setuptools)
|
||||||
makedepends=(setuptools)
|
checkdepends=('python2-zope-interface' 'python2-twisted')
|
||||||
source=(http://wwwsearch.sourceforge.net/$_pkgname/src/$_pkgname-$pkgver.tar.gz)
|
source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
|
||||||
md5sums=('32657f139fc2fb75bcf193b63b8c60b2')
|
sha256sums=('ee66e1a6af790898894dd0318914ced413d94f46a54f881eb337081ff9702cd2'
|
||||||
|
'SKIP')
|
||||||
|
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid@kovidgoyal.net>
|
||||||
|
|
||||||
package() {
|
build() {
|
||||||
cd "$srcdir/$_pkgname-$pkgver"
|
cd "mechanize-$pkgver"
|
||||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
||||||
install -D -m644 "$srcdir/$_pkgname-$pkgver/COPYING.txt" "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
|
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user