aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-uritemplate/APKBUILD
blob: 24570c9de26158dfa3369507e6368e7d155dde4d (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-uritemplate
_pkgname=uritemplate.py
pkgver=3.0.0
pkgrel=3
pkgdesc="Python3 module to use URO templates"
url="https://uritemplate.readthedocs.org"
arch="noarch"
license="BSD"
options="!check"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-uritemplate" # Backwards compatibility
provides="py-uritemplate=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="441553b1a48601454b57691957d8549e4f63f834b144382c95354498950c7b1118968d7acc98bbc5083efc98ef3959ce3187f03305a4c0b785600e2e926f1809  uritemplate.py-3.0.0.tar.gz"