#Packager: George Vlahavas pkgname=urlgrabber pkgver=4.1.0 pkgrel=1gv source=("https://files.pythonhosted.org/packages/b1/23/61cb4d829138f24bfae2c77af6794ddd67240811dbb4e3e2eb22c4f57742/urlgrabber-4.1.0.tar.gz" "rate_estimator_fix.patch") docs=("authors" "install" "readme" "copying" "license" "changelog" "todo") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "urlgrabber (A high-level cross-protocol url-grabber for python)" "urlgrabber dramatically simplifies the fetching of files. It is" "designed to be used in programs that need common (but not necessarily" "simple) url-fetching features. This package provides both a binary and" "a module, both of the name urlgrabber." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/rate_estimator_fix.patch || exit 1 python3 setup.py install --prefix=/usr --root=$startdir/pkg # only the docs are in here and we put those in /usr/doc anyway rm -rf $startdir/pkg/usr/share }