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

Kyle Keen kkeen at archlinux.org
Wed Mar 11 01:58:34 UTC 2015


    Date: Wednesday, March 11, 2015 @ 02:58:34
  Author: kkeen
Revision: 129039

archrelease: copy trunk to community-any

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

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

Copied: python-ptyprocess/repos/community-any/PKGBUILD (from rev 129038, python-ptyprocess/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-03-11 01:58:34 UTC (rev 129039)
@@ -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.4
+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=('d29b8bfd7d2df4d9e4a0f87aafe59018'
+         '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