From cb810afb7094790bd3f436bce74d8fac3bdf9545 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 6 Mar 2022 01:22:19 +0000 Subject: [PATCH] added extra/python2-pyparsing --- extra/python2-pyparsing/PKGBUILD | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 extra/python2-pyparsing/PKGBUILD diff --git a/extra/python2-pyparsing/PKGBUILD b/extra/python2-pyparsing/PKGBUILD new file mode 100644 index 000000000..47dcab78c --- /dev/null +++ b/extra/python2-pyparsing/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan +# Contributor: Alexander F Rødseth +# Contributor: Chris Brannon +# Contributor: Geoffroy Carrier +# Contributor: Arvid Ephraim Picciani +# Contributor: Michael Krauss + +# ALARM: Kevin Mihelich +# - python2 variant that's still needed by packages + +pkgname=python2-pyparsing +pkgver=2.4.7 +pkgrel=6.1 +pkgdesc='General parsing module for Python' +arch=('any') +url='https://github.com/pyparsing/pyparsing/' +makedepends=('python2-setuptools') +license=('MIT') +source=("https://github.com/pyparsing/pyparsing/archive/pyparsing_$pkgver.tar.gz") +sha512sums=('c7a546729f86a2b5176e2482b566b9fd715b03e495aaef4d720b21307bb03f385dbc849247f8d266cb3d92be0a83c34ce4995b655ce85318355d5a0d42d6991e') + +build() { + cd pyparsing-pyparsing_$pkgver + python2 setup.py build +} + +check() { + cd pyparsing-pyparsing_$pkgver + python2 unitTests.py +} + +package() { + depends=('python2') + + cd pyparsing-pyparsing_$pkgver + + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: