[arch-commits] Commit in python-sh/repos (2 files)

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 05:57:14 UTC 2014


    Date: Monday, March 17, 2014 @ 06:57:13
  Author: fyan
Revision: 107341

archrelease: copy trunk to community-staging-any

Added:
  python-sh/repos/community-staging-any/
  python-sh/repos/community-staging-any/PKGBUILD
    (from rev 107340, python-sh/trunk/PKGBUILD)

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

Copied: python-sh/repos/community-staging-any/PKGBUILD (from rev 107340, python-sh/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-03-17 05:57:13 UTC (rev 107341)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+_pkgname=sh
+pkgname=("python-$_pkgname" "python2-$_pkgname")
+pkgver=1.09
+pkgrel=3
+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')
+source=("http://pypi.python.org/packages/source/s/sh/$_pkgname-$pkgver.tar.gz")
+
+build() {
+  cp -r "$_pkgname-$pkgver" "python2-$_pkgname-$pkgver"
+
+  cd $_pkgname-$pkgver
+  python setup.py build
+
+  cd ../python2-$_pkgname-$pkgver
+  python2 setup.py build
+}
+
+package_python-sh() {
+  depends=('python')
+
+  cd $_pkgname-$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 python2-$_pkgname-$pkgver
+  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:
+md5sums=('b68a2f91de880dce042d4f03ec9e0f47')




More information about the arch-commits mailing list