#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=mechanize pkgver=0.2.5 zenver=72 pkgrel=1 arch=i686 source=("http://pypi.python.org/packages/source/m/mechanize/$pkgname-$pkgver.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/l/$pkgname docs=("*.txt" "PKG-INFO") url=http://wwwsearch.sourceforge.net/mechanize/ options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mechanize (stateful programmatic web browsing in Python)" "Stateful programmatic web browsing, after Andy Lester's Perl module" "WWW::Mechanize." "The library is layered: mechanize.Browser (stateful web browser)," "mechanize.UserAgent (configurable URL opener), plus urllib2 handlers." ) build() { cd $startdir/src/$pkgname-$pkgver python setup.py install --root=$startdir/pkg --prefix=/usr mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver mv -v $startdir/src/$pkgname-$pkgver/docs/html $startdir/pkg/usr/doc/$pkgname-$pkgver/ mv -v $startdir/src/$pkgname-$pkgver/docs/styles $startdir/pkg/usr/doc/$pkgname-$pkgver/ }