summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 02:57:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 02:57:34 (GMT)
commit5beff0559e9d9be5004dd541541f0f881351b11d (patch)
tree93cd503612a7cfb8ad371929364d33c2d622162b
parentd1b7b19211bd325375bea510e33b3ba9225dbe19 (diff)
downloadlinhes_pkgbuild-5beff0559e9d9be5004dd541541f0f881351b11d.zip
linhes_pkgbuild-5beff0559e9d9be5004dd541541f0f881351b11d.tar.gz
linhes_pkgbuild-5beff0559e9d9be5004dd541541f0f881351b11d.tar.bz2
python-click: initial inclusion
-rw-r--r--abs/core/python_modules/python-click/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-click/PKGBUILD b/abs/core/python_modules/python-click/PKGBUILD
new file mode 100644
index 0000000..06d9ce5
--- /dev/null
+++ b/abs/core/python_modules/python-click/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Carl George < arch at cgtx dot us >
+
+pkgbase=python-click
+pkgname=("python2-click")
+_realname=click
+pkgver=6.7
+pkgrel=1
+pkgdesc="A simple wrapper around optparse for powerful command line utilities"
+arch=("any")
+url="http://click.pocoo.org/"
+license=("BSD")
+makedepends=("python2-setuptools")
+source=("https://github.com/pallets/click/archive/${pkgver}.tar.gz")
+sha256sums=('40b20383dcbfbe73ab0917374f3dbe866fcf0d88c2a348618bf4419ea136f0dd')
+
+prepare() {
+ cp -a $_realname-$pkgver{,-python2}
+}
+
+build() {
+# cd "${srcdir}/${_realname}-${pkgver}"
+# python setup.py build
+
+ cd "${srcdir}/${_realname}-${pkgver}-python2"
+ python2 setup.py build
+}
+
+package_python-click() {
+ depends=("python")
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-click() {
+ depends=("python2")
+ cd "${srcdir}/${_realname}-${pkgver}-python2"
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}