updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / python-pyhyphen / PKGBUILD
blobf0948dfe611ba0c67191cfdd8efb8cb461e83ff9
1 # Maintainer: Veli-Jussi Raitila <vjr@iki.fi>
3 pkgname=python-pyhyphen
4 _pkgname=PyHyphen
5 pkgver=1.0beta1
6 pkgrel=1
7 pkgdesc="The hyphenation library of OpenOffice and FireFox wrapped for Python"
8 arch=('x86_64' 'i686')
9 url="http://pypi.python.org/pypi/PyHyphen"
10 license=('GPL2' 'LGPL2.1' 'MPL')
11 depends=('python2')
12 install=pyhyphen.install
13 source=("http://pypi.python.org/packages/source/P/PyHyphen/${_pkgname}-${pkgver}.zip"
14         "pyhyphen-setup.py")
15 md5sums=('0c957cb85b36db147ded9121cb5445ce'
16          '67cff7329615bc6c4d4867aab37443f0')
18 build() {
19   cd "${srcdir}/${_pkgname}-${pkgver}"
21   sed -i \
22     -e "s|\$path|/usr/lib/python2.7/site-packages/hyphen|" \
23     -e "s|\$repo|http://ftp.osuosl.org/pub/openoffice/contrib/dictionaries/|" \
24     2.x/config.py
26   python2 setup.py bdist_dumb
29 package() {
30   cd "${pkgdir}"
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