aboutsummaryrefslogblamecommitdiffstats
path: root/main/py-urlgrabber/APKBUILD
blob: e93aa86b3da8fe2b5f7f593639d58dc0b0cca9f5 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    
             
        
                                            

                                    
                



























                                                                          


                                                                                                                                                                       
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-urlgrabber
pkgver=3.10.1
pkgrel=0
pkgdesc="A python module for fetching files"
url="http://urlgrabber.baseurl.org/"
arch="noarch"
license="LGPL2+"
depends="python py-curl"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://urlgrabber.baseurl.org/download/urlgrabber-$pkgver.tar.gz"

_builddir="$srcdir"/urlgrabber-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="1f5dc63805623cc473e06204fd240bb2  urlgrabber-3.10.1.tar.gz"
sha256sums="06b13ff8d527dba3aee04069681b2c09c03117592d5485a80ae4b807cdf33476  urlgrabber-3.10.1.tar.gz"
sha512sums="c44d32b17c5f8984d09ed46ae36b3e05dc69d041820cf979029bc325d8407bbd7e324f264be5886286cd99e123f51affec26638cab6e525f85e2a1c4247462d7  urlgrabber-3.10.1.tar.gz"