[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 17 15:16:24 UTC 2017


    Date: Monday, July 17, 2017 @ 15:16:23
  Author: felixonmars
Revision: 245491

addpkg: python-softlayer 5.2.7-1

Added:
  python-softlayer/
  python-softlayer/repos/
  python-softlayer/trunk/
  python-softlayer/trunk/PKGBUILD

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Added: python-softlayer/trunk/PKGBUILD
===================================================================
--- python-softlayer/trunk/PKGBUILD	                        (rev 0)
+++ python-softlayer/trunk/PKGBUILD	2017-07-17 15:16:23 UTC (rev 245491)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-softlayer
+pkgname=('python-softlayer' 'python2-softlayer')
+pkgver=5.2.7
+pkgrel=1
+pkgdesc="A library for SoftLayer's API"
+arch=('any')
+license=('MIT')
+url='http://github.com/softlayer/softlayer-python'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-prettytable' 'python2-prettytable'
+             'python-click' 'python2-click' 'python-requests' 'python2-requests'
+             'python-prompt_toolkit' 'python2-prompt_toolkit' 'python-pygments' 'python2-pygments')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+              'python-testtools' 'python2-testtools')
+source=("$pkgbase-$pkgver.tar.gz::http://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
+sha512sums=('f464dfc91a87dd4afedf176d4910bd8bd051bd93bba6c34f2064e1608f1f253492d758dc63f52f8ff2077d9be5ac0568ebc72e101833854171f4125265f54a46')
+
+prepare() {
+  cp -a softlayer-python-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/softlayer-python-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/softlayer-python-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/softlayer-python-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/softlayer-python-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-softlayer() {
+  depends=('python-setuptools' 'python-prettytable' 'python-click' 'python-requests'
+           'python-prompt_toolkit' 'python-pygments')
+
+  cd softlayer-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-softlayer() {
+  depends=('python2-setuptools' 'python2-prettytable' 'python2-click' 'python2-requests'
+           'python2-prompt_toolkit' 'python2-pygments')
+
+  cd softlayer-python-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-softlayer/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list