aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-purl/APKBUILD
blob: afc3c6e750541827a5634557bf66e358ea7f99c9 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-purl
_pkgname=purl
pkgver=1.3
pkgrel=0
pkgdesc="An immutable Python URL class for easy URL-building and manipulation"
url="https://github.com/codeinthehole/purl"
arch="noarch"
license="MIT"
depends="python2 py-six"
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"
	python2 setup.py build || return 1
}

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

md5sums="4aad2cf530fc4f1b9e60818d98d9d19f  purl-1.3.tar.gz"
sha256sums="2061099165a8407f47f41096c3388b249e52a55b51a67c50738ca83033ce01f2  purl-1.3.tar.gz"
sha512sums="8f555a575b83ab3bbd83eb57ac37447d9696bf3330bb32a5d4dcfef1023f7d3ca963b8595c32186f76853f7582aa0967fd1a20f400ecfd837f2593d9b450937f  purl-1.3.tar.gz"