aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-jellyfish/APKBUILD
blob: 60e305156b12093e9275c91ad8b1cfae7fb33973 (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.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 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="dc73e534a0f85296eb300d591d873238  jellyfish-0.5.6.tar.gz"
sha256sums="2e31dddf863a360966fd997ebd60c692ad56cbdbb0a352956c0aeae6af1b07b5  jellyfish-0.5.6.tar.gz"
sha512sums="f8be8a9ff291a2af08632d763ee14de7b87d1dd56b5c7241826f651425bedd076913b335df452659653477682b5c683baa3f716120d0b6af4664454cc045d9ca  jellyfish-0.5.6.tar.gz"