summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/python_modules/python-rebulk/PKGBUILD34
-rw-r--r--abs/core/python_modules/python-rebulk/__changelog2
2 files changed, 36 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-rebulk/PKGBUILD b/abs/core/python_modules/python-rebulk/PKGBUILD
new file mode 100644
index 0000000..c7338bf
--- /dev/null
+++ b/abs/core/python_modules/python-rebulk/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sebastien Leduc <sebastien@sleduc.fr>
+pkgname=('python2-rebulk')
+pkgbase='python-rebulk'
+_guser='Toilal'
+_gproject="rebulk"
+pkgver=0.9.0
+pkgrel=1
+pkgdesc=" Define simple search patterns in bulk to perform advanced matching on any string. "
+arch=("any")
+url="https://github.com/Toilal/rebulk"
+license=('MIT')
+makedepends=('python2' 'python2-setuptools' 'python2-pytest-runner')
+options=(!emptydirs)
+source=("https://github.com/${_guser}/${_gproject}/archive/${pkgver}.tar.gz")
+md5sums=('7f76cd95e6ca9219202aeaa9b1b7b7c8')
+
+
+prepare() {
+ cp -a "${srcdir}/${_gproject}-${pkgver}"{,-python2}
+}
+
+package_python-rebulk() {
+ depends=('python-six' 'python-regex')
+ cd "$srcdir/$_gproject-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-rebulk() {
+ depends=('python2-six' 'python2-regex' 'python2-ordereddict')
+ cd "$srcdir/$_gproject-$pkgver-python2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-rebulk/__changelog b/abs/core/python_modules/python-rebulk/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-rebulk/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+