mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 02:35:23 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-mechanize
|
|
_pkgname=mechanize
|
|
pkgver=0.4.8
|
|
pkgrel=3
|
|
pkgdesc="Stateful programmatic web browsing in Python"
|
|
url="https://github.com/python-mechanize/mechanize"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-html5lib python3"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
$pkgname-fix-install.patch::https://github.com/python-mechanize/mechanize/commit/a14ecec7abcd8da9b55d28a6d9ebfd89ce635615.patch
|
|
py311-fix-check.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 run_tests.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
71087481d27359b3ce795eae440ebb3a146f8dd5a6d5ac5dc91ae3c63f2c487beb472aa06b2925d6121faa038a0a8be50f6cecc54ee7209eb2b61e16242ffaa3 mechanize-0.4.8.tar.gz
|
|
960ecbbb73a6a1a73bdb7233fc94d4dcb261159e24916e7d9f91d352a9fb8e163e69c64d359b2d84ad35a22a557919b8d83dbe1f2d50505b053465ef420b135e py3-mechanize-fix-install.patch
|
|
28980086592f44b1194a7765ccf6e9859ac5bafcb59dbe540be4ac282464f3b35429927fb916107d3f58ea4b293172340219acfb3a3063dbd93c48be39ad8705 py311-fix-check.patch
|
|
"
|