summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Szymecki2016-01-08 15:02:03 +0100
committerWojciech Szymecki2016-01-08 15:05:19 +0100
commit2bbd07eb996d9e523490be9ea2f80ae2dec75ff9 (patch)
tree5bf41c159441b77084f3527fefd4bc1bf78dd714
downloadaur-2bbd07eb996d9e523490be9ea2f80ae2dec75ff9.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD44
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..83948f731de
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Fri Jan 8 14:04:51 UTC 2016
+pkgbase = python-parsimonious
+ pkgver = 0.6.2
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/parsimonious/0.6.2
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.python.org/packages/source/p/parsimonious/parsimonious-0.6.2.tar.gz
+ md5sums = 7a32835027927522be5ae2b523862a75
+
+pkgname = python-parsimonious
+ pkgdesc = Fast parser based on parsing expression grammars (PEGs) - Python 3 version.
+ depends = python>=3.2
+
+pkgname = python2-parsimonious
+ pkgdesc = Fast parser based on parsing expression grammars (PEGs) - Python 2 version.
+ depends = python>=2.6
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..31d27563afe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..57da8b042cd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Wojciech Szymecki <w.szymecki-at-g;mail-com>
+_name="parsimonious"
+
+pkgbase="python-${_name}"
+pkgname=("python-${_name}" "python2-${_name}")
+pkgver=0.6.2
+pkgrel=1
+arch=('any')
+url="https://pypi.python.org/pypi/${_name}/${pkgver}"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
+md5sums=('7a32835027927522be5ae2b523862a75')
+
+prepare() {
+ cp -r "${srcdir}/${_name}-${pkgver}" "${srcdir}/${_name}-${pkgver}-python2"
+}
+
+build() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ python3 setup.py build
+ cd "${srcdir}/${_name}-${pkgver}-python2"
+ python2 setup.py build
+}
+
+package_python-parsimonious() {
+ pkgdesc="Fast parser based on parsing expression grammars (PEGs) - Python 3 version."
+ depends=('python>=3.2')
+
+ cd "${srcdir}/${_name}-${pkgver}"
+
+ python3 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-parsimonious() {
+ pkgdesc="Fast parser based on parsing expression grammars (PEGs) - Python 2 version."
+ depends=('python>=2.6')
+
+ cd "${srcdir}/${_name}-${pkgver}-python2"
+
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}