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

Felix Yan felixonmars at archlinux.org
Thu Mar 23 07:29:07 UTC 2017


    Date: Thursday, March 23, 2017 @ 07:29:07
  Author: felixonmars
Revision: 218477

archrelease: copy trunk to community-any

Added:
  python-pysocks/repos/community-any/PKGBUILD
    (from rev 218476, python-pysocks/trunk/PKGBUILD)
Deleted:
  python-pysocks/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  128 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 64 insertions(+), 64 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-23 07:28:47 UTC (rev 218476)
+++ PKGBUILD	2017-03-23 07:29:07 UTC (rev 218477)
@@ -1,64 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Michael Schubert <mschu.dev at gmail>
-
-pkgbase=python-pysocks
-pkgname=(python-pysocks python2-pysocks)
-pkgver=1.6.6
-pkgrel=1
-pkgdesc="SOCKS4, SOCKS5 or HTTP proxy (Anorov fork PySocks replaces socksipy)"
-arch=('any')
-license=('BSD')
-url="https://github.com/Anorov/PySocks"
-makedepends=('python' 'python2' 'git')
-checkdepends=('lib32-glibc' 'python2-twisted' 'python2-tornado')
-source=("git+https://github.com/Anorov/PySocks.git#tag=$pkgver")
-md5sums=('SKIP')
-
-prepare() {
-  cp -a PySocks{,-py2}
-}
-
-build() {
-  cd "$srcdir"/PySocks
-  python setup.py build
-
-  cd "$srcdir"/PySocks-py2
-  python2 setup.py build
-}
-
-# Tests disabled as it requires external services to run
-check_disabled() {
-  cd "$srcdir"/PySocks-py2/test
-  python2 socks4server.py &
-  _SOCKS4SERVER=$!
-  python2 httpproxy.py &
-  _HTTPPROXY=$1
-
-  ./mocks start
-
-  sleep 1
-
-  python2 sockstest.py
-
-  cd "$srcdir"/PySocks/test
-  python sockstest.py
-
-  ./mocks shutdown
-
-  kill $_SOCKS4SERVER $_HTTPPROXY
-}
-
-package_python-pysocks() {
-  depends=('python')
-
-  cd PySocks
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}
-
-package_python2-pysocks() {
-  depends=('python2')
-
-  cd PySocks-py2
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}

Copied: python-pysocks/repos/community-any/PKGBUILD (from rev 218476, python-pysocks/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-03-23 07:29:07 UTC (rev 218477)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Michael Schubert <mschu.dev at gmail>
+
+pkgbase=python-pysocks
+pkgname=(python-pysocks python2-pysocks)
+pkgver=1.6.7
+pkgrel=1
+pkgdesc="SOCKS4, SOCKS5 or HTTP proxy (Anorov fork PySocks replaces socksipy)"
+arch=('any')
+license=('BSD')
+url="https://github.com/Anorov/PySocks"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('lib32-glibc' 'python2-twisted' 'python2-tornado')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Anorov/PySocks/archive/$pkgver.tar.gz")
+sha512sums=('6b670b2246c2c3c8d0b5424f6fb65cbab1d030d58b15f99db9eb232ead5e853c52af637f3d429e3fe88c70792f3b4913219b6694fa0e81318cdd40c41c1b17d6')
+
+prepare() {
+  cp -a PySocks-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/PySocks-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/PySocks-$pkgver-py2
+  python2 setup.py build
+}
+
+# Tests disabled as it requires external services to run
+check_disabled() {
+  cd "$srcdir"/PySocks-$pkgver-py2/test
+  python2 socks4server.py &
+  _SOCKS4SERVER=$!
+  python2 httpproxy.py &
+  _HTTPPROXY=$1
+
+  ./mocks start
+
+  sleep 1
+
+  python2 sockstest.py
+
+  cd "$srcdir"/PySocks-$pkgver/test
+  python sockstest.py
+
+  ./mocks shutdown
+
+  kill $_SOCKS4SERVER $_HTTPPROXY
+}
+
+package_python-pysocks() {
+  depends=('python')
+
+  cd PySocks-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysocks() {
+  depends=('python2')
+
+  cd PySocks-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list