[arch-commits] Commit in python-sh/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Dec 26 01:01:53 UTC 2016
Date: Monday, December 26, 2016 @ 01:01:53
Author: felixonmars
Revision: 202453
archrelease: copy trunk to community-staging-any
Added:
python-sh/repos/community-staging-any/
python-sh/repos/community-staging-any/PKGBUILD
(from rev 202452, python-sh/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-sh/repos/community-staging-any/PKGBUILD (from rev 202452, python-sh/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-26 01:01:53 UTC (rev 202453)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=("python-sh" "python2-sh")
+pkgver=1.12.8
+pkgrel=2
+pkgdesc='Subprocess interface that allows you to call any program as if it were a function'
+arch=('any')
+url='http://pypi.python.org/pypi/sh'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-coverage' 'python2-coverage' 'lsof')
+source=("https://pypi.io/packages/source/s/sh/sh-$pkgver.tar.gz")
+md5sums=('aafcd26c58df5325df12d106059206cf')
+
+prepare() {
+ cp -a sh-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/sh-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/sh-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/sh-$pkgver
+ python sh.py travis
+
+ cd "$srcdir"/sh-$pkgver-py2
+ python2 sh.py travis
+}
+
+package_python-sh() {
+ depends=('python')
+
+ cd sh-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/python-sh/LICENSE
+}
+
+package_python2-sh() {
+ depends=('python2')
+
+ cd sh-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/python2-sh/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list