From 5beff0559e9d9be5004dd541541f0f881351b11d Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 19 Jul 2017 02:57:34 +0000 Subject: python-click: initial inclusion --- abs/core/python_modules/python-click/PKGBUILD | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 abs/core/python_modules/python-click/PKGBUILD 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 +# 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" +} -- cgit v0.12