aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-urlobject/APKBUILD
blob: 3d960316b2770f0cae9c543d81e0e650c4756682 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                               
                 
              
                                       

              
                                                                                                          
























                                                                                                                                                                     
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-urlobject
_pkgname=URLObject
pkgver=2.4.0
pkgrel=0
pkgdesc="A Python utility class for manipulating URLs"
url="https://github.com/dperezrada/html2data"
arch="noarch"
license="Public Domain"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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="2ed819738a9f0a3051f31dc9924e3065  URLObject-2.4.0.tar.gz"
sha256sums="f51272b12846db98af530b0a64f6593d2b1e8405f0aa580285b37ce8009b8d9c  URLObject-2.4.0.tar.gz"
sha512sums="1334c8d8dbb93f50fb6672ae5c2e1dbb8c880af65c18c96c7bc65bb46ae894ab0696d36236036c1e4434a6e75b692ecd0b37055ef9b55fb50ffbaf13197b1701  URLObject-2.4.0.tar.gz"