[arch-commits] Commit in python-pysocks/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 1 21:12:38 UTC 2019
Date: Wednesday, May 1, 2019 @ 21:12:37
Author: felixonmars
Revision: 457499
archrelease: copy trunk to community-any
Added:
python-pysocks/repos/community-any/PKGBUILD
(from rev 457498, python-pysocks/trunk/PKGBUILD)
Deleted:
python-pysocks/repos/community-any/PKGBUILD
----------+
PKGBUILD | 131 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 67 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-01 21:12:06 UTC (rev 457498)
+++ PKGBUILD 2019-05-01 21:12:37 UTC (rev 457499)
@@ -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.8
-pkgrel=2
-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=('d6d28a77e1162dee2574c5ca69a01b94ebb3c0c5e9f875569ace2689ea31a4eebed1463472731635b242698a3a3215cadd79744c068610995d81f95ef94dd228')
-
-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
-}
Copied: python-pysocks/repos/community-any/PKGBUILD (from rev 457498, python-pysocks/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-01 21:12:37 UTC (rev 457499)
@@ -0,0 +1,67 @@
+# 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.8
+pkgrel=3
+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=('d6d28a77e1162dee2574c5ca69a01b94ebb3c0c5e9f875569ace2689ea31a4eebed1463472731635b242698a3a3215cadd79744c068610995d81f95ef94dd228')
+
+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')
+ provides=('python-socks')
+ replaces=('python-socks')
+
+ cd PySocks-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysocks() {
+ depends=('python2')
+ provides=('python2-socks')
+ replaces=('python2-socks')
+
+ cd PySocks-$pkgver-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list