# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-rencode
_pkgname=rencode
pkgver=1.0.5
pkgrel=0
pkgdesc="The rencode module is similar to bencode from the BitTorrent project."
url="https://pypi.python.org/pypi/rencode"
arch="all"
license="GPL-3.0"
depends="python2 cython"
depends_dev=""
makedepends="$depends_dev py-setuptools cython-dev python2-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

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

md5sums="3bdbec5c50d845e5367ba53c5b85d1a4  py-rencode-1.0.5.tar.gz"
sha256sums="cbdb8d2473aa5a7246e1a8077055be697fccec88477b78248c5fe93d79e2cd26  py-rencode-1.0.5.tar.gz"
sha512sums="809d7070b746fe77419e7b4d2eed274e1e0b3b4f15bcddb466806478a90f89965b0b456443b390cce6d1ca9df409367f336dd659f4481cd442e3cc459bd63c18  py-rencode-1.0.5.tar.gz"
