aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-mechanize/APKBUILD
blob: e1f321f752b6568e23937bdeff704ff48d5c4172 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-mechanize
_pkgname=mechanize
pkgver=0.2.5
pkgrel=1
pkgdesc="Stateful programmatic web browsing in Python"
url="http://wwwsearch.sourceforge.net/mechanize/"
arch="noarch"
license="BSD ZPL"
makedepends="python2-dev py-setuptools"
source="http://wwwsearch.sourceforge.net/$_pkgname/src/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 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"
sha256sums="2e67b20d107b30c00ad814891a095048c35d9d8cb9541801cebe85684cc84766  mechanize-0.2.5.tar.gz"
sha512sums="23de1d9a5fba63d76fd577889594dacf5412fb2fccb58908a10ab350a81dd16a7a31019d0b4a59a5ed4115320c7e3585c77eef88dcd80a88a9c3c2da3c28fa68  mechanize-0.2.5.tar.gz"