diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7b51cb94a2fd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +_pkgname=python2-pynlpl +pkgname=${_pkgname}-git +pkgver=1324 +pkgrel=2 +pkgdesc='Python Natural Language Processing Library (pronounce as: pineapple). Contains various modules useful for common, and less common, NLP tasks. Includes full FoLiA library.' +arch=('i686' 'x86_64') +url="https://github.com/proycon/pynlpl" +license=('GPL') +depends=('python2' 'python2-setuptools' 'python2-lxml' 'python2-httplib2' 'python2-numpy') +makedepends=('git') +provides=("${_pkgname}") +conflicts=("python2-pynlpl") +source=("git://github.com/proycon/pynlpl.git") +_gitname=("pynlpl") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + git rev-list --count HEAD +} + +build() { + cd "$srcdir/$_gitname" + python2 setup.py build +} + +package() { + cd "$srcdir/$_gitname" + python2 setup.py install --prefix=/usr --root="${pkgdir}" +} + |