[arch-commits] Commit in python-pyptlib/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Tue Mar 3 02:51:04 UTC 2015


    Date: Tuesday, March 3, 2015 @ 03:51:04
  Author: fyan
Revision: 128589

archrelease: copy trunk to community-any

Added:
  python-pyptlib/repos/community-any/
  python-pyptlib/repos/community-any/PKGBUILD
    (from rev 128588, python-pyptlib/trunk/PKGBUILD)

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

Copied: python-pyptlib/repos/community-any/PKGBUILD (from rev 128588, python-pyptlib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-03-03 02:51:04 UTC (rev 128589)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: mutantmonkey <aur at mutantmonkey.in>
+
+pkgbase=python-pyptlib
+pkgname=('python2-pyptlib')
+_pkgname=pyptlib
+pkgver=0.0.6
+pkgrel=1
+pkgdesc="A python implementation of the Pluggable Transports for Circumvention specification for Tor"
+arch=('any')
+url="https://pypi.python.org/pypi/pyptlib"
+license=('BSD')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/p/pyptlib/pyptlib-${pkgver}.tar.gz")
+sha256sums=('b98472e3d9e8f4689d3913ca8f89afa5e6cc5383dcd8686987606166f9dac607')
+
+prepare() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' pyptlib/*.py pyptlib/util/*.py
+  sed -i 's/\["python", "-m"/["python2", "-m"/' pyptlib/test/{test_util_subproc.py,util_subproc_main.py}
+}
+
+check() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py test
+}
+
+package_python2-pyptlib() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list