summaryrefslogtreecommitdiffstats
path: root/testing/py-mechanize/APKBUILD
blob: c7c661a271c560d6f91c47163a2b6b0a6655ba53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-mechanize
_pkgname=mechanize
pkgver=0.2.5
pkgrel=0
pkgdesc="Stateful programmatic web browsing in Python"
url="http://wwwsearch.sourceforge.net/mechanize/"
arch="noarch"
license="BSD ZPL"
depends=
depends_dev="python-dev py-setuptools"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://wwwsearch.sourceforge.net/$_pkgname/src/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -Dm644 COPYING.txt ${pkgdir}/usr/share/licenses/custom/${pkgname}/COPYING.txt
}

md5sums="32657f139fc2fb75bcf193b63b8c60b2  mechanize-0.2.5.tar.gz"