# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=py-jellyfish
pkgver=0.5.6
pkgrel=0
pkgdesc="a python library for doing approximate and phonetic matching of strings"
url="https://github.com/jamesturk/jellyfish"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev python2-dev py-setuptools"
install=""
subpackages=""
source="jellyfish-$pkgver.tar.gz::https://github.com/jamesturk/jellyfish/archive/$pkgver.tar.gz"

_builddir="$srcdir"/jellyfish-$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="dc73e534a0f85296eb300d591d873238  jellyfish-0.5.6.tar.gz"
sha256sums="2e31dddf863a360966fd997ebd60c692ad56cbdbb0a352956c0aeae6af1b07b5  jellyfish-0.5.6.tar.gz"
sha512sums="f8be8a9ff291a2af08632d763ee14de7b87d1dd56b5c7241826f651425bedd076913b335df452659653477682b5c683baa3f716120d0b6af4664454cc045d9ca  jellyfish-0.5.6.tar.gz"
