1 # Maintainer: Veli-Jussi Raitila <vjr@iki.fi>
3 pkgname=python-pyhyphen
7 pkgdesc="The hyphenation library of OpenOffice and FireFox wrapped for Python"
9 url="http://pypi.python.org/pypi/PyHyphen"
10 license=('GPL2' 'LGPL2.1' 'MPL')
12 install=pyhyphen.install
13 source=("http://pypi.python.org/packages/source/P/PyHyphen/${_pkgname}-${pkgver}.zip"
15 md5sums=('0c957cb85b36db147ded9121cb5445ce'
16 '67cff7329615bc6c4d4867aab37443f0')
19 cd "${srcdir}/${_pkgname}-${pkgver}"
22 -e "s|\$path|/usr/lib/python2.7/site-packages/hyphen|" \
23 -e "s|\$repo|http://ftp.osuosl.org/pub/openoffice/contrib/dictionaries/|" \
26 python2 setup.py bdist_dumb
32 tar xzvf "${srcdir}/${_pkgname}-${pkgver}/dist/${_pkgname}-${pkgver}.linux-${arch}.tar.gz"
34 install -D -m755 "${srcdir}/pyhyphen-setup.py" \
35 "${pkgdir}/usr/bin/pyhyphen-setup.py"
37 chown -R root:root ${pkgdir}/usr