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

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:40:34 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:40:34
  Author: foutrelis
Revision: 140970

archrelease: copy trunk to community-staging-any

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

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

Copied: python-ptyprocess/repos/community-staging-any/PKGBUILD (from rev 140969, python-ptyprocess/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:40:34 UTC (rev 140970)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Will Shanks <wsha dot code at g mail dot com>
+
+pkgbase=python-ptyprocess
+pkgname=(python-ptyprocess python2-ptyprocess)
+_pkgname=ptyprocess
+pkgver=0.5
+pkgrel=2
+pkgdesc="Run a subprocess in a pseudo terminal"
+url="https://github.com/pexpect/ptyprocess"
+arch=('any')
+license=('ISC')
+depends=('python')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
+       'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE')
+md5sums=('0d1ecfba622cb4e35ee157c38de18eae'
+         'cfdcd51fa7d5808da4e74346ee394490')
+
+prepare() {
+  cd "$srcdir"
+  cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver
+}
+
+package_python-ptyprocess() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+  install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python-$_pkgname/LICENSE"
+}
+
+package_python2-ptyprocess() {
+  depends=('python2')
+  cd "$srcdir/${_pkgname}2-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+  install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python2-$_pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list