aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-jellyfish/APKBUILD
blob: bdf8761a9cb2120e8e47d9c4b5e1371c393dfe64 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=py-jellyfish
pkgver=0.5.5
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 python-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"
	python setup.py build || return 1
}

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

md5sums="2e9a8e32e33199d699eecf2a19eae553  jellyfish-0.5.5.tar.gz"
sha256sums="6ad9fd3be8944a923ad57b6f1cf9cbbb846f6920c90bb4e2f75b5c38e48c7b6f  jellyfish-0.5.5.tar.gz"
sha512sums="a7b6c796d7c9f5a86a92a64112a79fe056018d17bc43c87dd4ac1914c6e8a7e866b117137cd88ebe886d6fc6a1a6a82f773ba8daef402c8942b6e2d102f0774e  jellyfish-0.5.5.tar.gz"