summaryrefslogtreecommitdiff
path: root/pcr/python-simpleeval
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-07-10 00:04:09 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-07-10 00:04:09 -0500
commit548bde2f2549f2f597769746e2d7eb72978a6b5a (patch)
treebbafa3b2dfcd048c5322a8c20cc5d66ae14ea7c9 /pcr/python-simpleeval
parent0bda299cea15059f50485e8843cfbbcc4f39e06a (diff)
downloadabslibre-548bde2f2549f2f597769746e2d7eb72978a6b5a.tar.gz
abslibre-548bde2f2549f2f597769746e2d7eb72978a6b5a.tar.bz2
abslibre-548bde2f2549f2f597769746e2d7eb72978a6b5a.zip
python-simpleeval: add new packages to [pcr]
Diffstat (limited to 'pcr/python-simpleeval')
-rw-r--r--pcr/python-simpleeval/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/python-simpleeval/PKGBUILD b/pcr/python-simpleeval/PKGBUILD
new file mode 100644
index 000000000..16845500b
--- /dev/null
+++ b/pcr/python-simpleeval/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgbase=python-simpleeval
+pkgname=('python-simpleeval' 'python2-simpleeval')
+pkgver=0.8.7
+pkgrel=1
+pkgdesc='Simple Safe Extensible Expression Evaluator for Python'
+arch=(any)
+url="https://pypi.python.org/pypi/simpleeval"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/danthedeckie/simpleeval/archive/$pkgver.tar.gz")
+md5sums=('3bb26dee1a183990f1ba38552d589b79')
+
+prepare() {
+ cp -a simpleeval-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/simpleeval-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/simpleeval-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_python-simpleeval() {
+ depends=('python')
+
+ cd "$srcdir/simpleeval-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 "LICENCE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-simpleeval() {
+ depends=('python2')
+
+ cd "$srcdir/simpleeval-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 "LICENCE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}