[arch-commits] Commit in shadowsocks/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Sep 10 02:05:55 UTC 2014


    Date: Wednesday, September 10, 2014 @ 04:05:55
  Author: fyan
Revision: 118736

upgpkg: shadowsocks 2.2.0-1

Modified:
  shadowsocks/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-09-10 00:26:21 UTC (rev 118735)
+++ PKGBUILD	2014-09-10 02:05:55 UTC (rev 118736)
@@ -2,12 +2,13 @@
 # Maintainer: Felix Yan <felixonmars at gmail.com>
 
 pkgname=shadowsocks
-pkgver=2.1.0
+pkgver=2.2.0
 pkgrel=1
 pkgdesc="A lightweight tunnel proxy"
 license=("MIT")
 url="http://pypi.python.org/pypi/shadowsocks"
 depends=('python2' 'python2-setuptools')
+checkdepends=('python2-m2crypto' 'python2-salsa20')
 optdepends=('python2-m2crypto: For any encryption method other than "table"'
             'python2-numpy: For salsa20 support'
             'python2-salsa20: For salsa20 support')
@@ -26,6 +27,21 @@
       -i local.py server.py encrypt.py __init__.py utils.py
 }
 
+check() {
+  cd shadowsocks-$pkgver
+
+  # Tests not included
+  return
+  python2 tests/test.py -c tests/table.json
+  python2 tests/test.py -c tests/aes.json
+  python2 tests/test.py -c tests/rc4-md5.json
+  python2 tests/test.py -c tests/salsa20.json
+  python2 tests/test.py -c tests/server-multi-ports.json
+  python2 tests/test.py -c tests/server-multi-passwd.json
+  python2 tests/test.py -c tests/server-multi-passwd-table.json
+  python2 tests/test.py -c tests/workers.json
+}
+
 package() {
   cd "$srcdir/shadowsocks-$pkgver"
   python2 setup.py install -O1 --root="$pkgdir"
@@ -36,7 +52,7 @@
   install -Dm644 "$srcdir/$pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-sha512sums=('7596487d45f2a0658234b15c0ff7895ec9d75cb892ed593578fa9a7d23f52d93e2a14e0a8e2690f3170aeeaa8dfe7650c685f8f150c176e60f7d50cec7051f73'
+sha512sums=('dab410ca1a96d881d77db7afc25d60da029175153678e828e351242b9aa9faa6523d5a02f99f91edd771382f140c6646dc2f1261bbe283bc5edfb5d4bb4791db'
             '88abf42d51d7b7baa2b9cef016bfd194373fd178980c2c6f1bbb3ce31d3267dfca71efb013c6596c57c0390fdb95d716ff4acca97bdf960e56e9edf16f770352'
             '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
             'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')




More information about the arch-commits mailing list