aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-jwt/APKBUILD
blob: f32963e570245a57b7d187f7c5898ee4bf51b745 (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-jwt
_pkgname=PyJWT
pkgver=1.4.2
pkgrel=0
pkgdesc="Python JSON Web Token implementation"
url="https://github.com/progrium/pyjwt"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-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="e08aa1ecc99269248bb02f888c166af1  PyJWT-1.4.2.tar.gz"
sha256sums="87a831b7a3bfa8351511961469ed0462a769724d4da48a501cb8c96d1e17f570  PyJWT-1.4.2.tar.gz"
sha512sums="b0387d49fd1d06a8a846c2083160f6fd458c927ffac291fa9b4edbb1ce93d6bcc23e0d5528010aa919d67e1a78b0ce830b711802d6af1d20a1ce4e511bf6b007  PyJWT-1.4.2.tar.gz"