[arch-commits] Commit in python-ptyprocess/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 17:54:39 UTC 2016
Date: Saturday, December 24, 2016 @ 17:54:38
Author: foutrelis
Revision: 201704
archrelease: copy trunk to community-staging-any
Added:
python-ptyprocess/repos/community-staging-any/
python-ptyprocess/repos/community-staging-any/PKGBUILD
(from rev 201703, python-ptyprocess/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-ptyprocess/repos/community-staging-any/PKGBUILD (from rev 201703, python-ptyprocess/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 17:54:38 UTC (rev 201704)
@@ -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.1
+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=('94e537122914cc9ec9c1eadcd36e73a1'
+ '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