[arch-commits] Commit in python-softlayer/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Dec 1 16:25:22 UTC 2017
Date: Friday, December 1, 2017 @ 16:25:21
Author: felixonmars
Revision: 271193
archrelease: copy trunk to community-testing-any
Added:
python-softlayer/repos/community-testing-any/
python-softlayer/repos/community-testing-any/PKGBUILD
(from rev 271192, python-softlayer/trunk/PKGBUILD)
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Copied: python-softlayer/repos/community-testing-any/PKGBUILD (from rev 271192, python-softlayer/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2017-12-01 16:25:21 UTC (rev 271193)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-softlayer
+pkgname=('python-softlayer' 'python2-softlayer')
+pkgver=5.3.0
+pkgrel=1
+pkgdesc="A library for SoftLayer's API"
+arch=('any')
+license=('MIT')
+url='https://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::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
+sha512sums=('060295c54abf0569f8ad2198826a60a083516567c30c4b66dbaadebb5bf45195c43285191e2725297b620b7f95a2140ab28a7e832928f431733b2229d7436f67')
+
+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
+
+ mv "$pkgdir"/usr/bin/sl{,2}
+ mv "$pkgdir"/usr/bin/slcli{,2}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list