1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Alexander F Rødseth <xyproto@archlinux.org>
3 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
4 # Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
5 # Contributor: Arvid Ephraim Picciani <aep@exys.org>
6 # Contributor: Michael Krauss <hippodriver@gmx.net>
8 pkgname=python-pyparsing
9 pkgname=('python-pyparsing' 'python2-pyparsing')
12 pkgdesc='General parsing module for Python'
14 url='https://github.com/pyparsing/pyparsing/'
15 makedepends=('python-setuptools' 'python2-setuptools')
17 source=("https://github.com/pyparsing/pyparsing/archive/pyparsing_$pkgver.tar.gz")
18 sha512sums=('c7a546729f86a2b5176e2482b566b9fd715b03e495aaef4d720b21307bb03f385dbc849247f8d266cb3d92be0a83c34ce4995b655ce85318355d5a0d42d6991e')
21 cd pyparsing-pyparsing_$pkgver
23 python2 setup.py build
27 cd pyparsing-pyparsing_$pkgver
32 package_python-pyparsing() {
35 cd pyparsing-pyparsing_$pkgver
37 python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
38 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
41 package_python2-pyparsing() {
44 cd pyparsing-pyparsing_$pkgver
46 python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
47 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
50 # vim:set ts=2 sw=2 et: