[arch-commits] Commit in shadowsocks/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 31 13:17:00 UTC 2014
Date: Monday, March 31, 2014 @ 15:17:00
Author: fyan
Revision: 108666
upgpkg: shadowsocks 1.3.4-1
Modified:
shadowsocks/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-31 12:18:57 UTC (rev 108665)
+++ PKGBUILD 2014-03-31 13:17:00 UTC (rev 108666)
@@ -2,8 +2,8 @@
# Maintainer: Felix Yan <felixonmars at gmail.com>
pkgname=shadowsocks
-pkgver=1.3.3
-pkgrel=4
+pkgver=1.3.4
+pkgrel=1
pkgdesc="A lightweight tunnel proxy"
license=("MIT")
url="http://pypi.python.org/pypi/shadowsocks"
@@ -12,20 +12,22 @@
'python2-m2crypto: For any encryption method other than "table"')
source=("http://pypi.python.org/packages/source/s/shadowsocks/shadowsocks-${pkgver}.tar.gz"
"https://raw.github.com/clowwindy/shadowsocks/master/LICENSE"
- "shadowsocks at .service"
- "shadowsocks-server at .service")
+ "shadowsocks at .service"
+ "shadowsocks-server at .service")
arch=('any')
install=${pkgname}.install
prepare() {
- cd "$srcdir/shadowsocks-$pkgver"
+ cd shadowsocks-$pkgver/shadowsocks
# python2 fix
- find . -name '*.py' -type f -print0 | xargs -0 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
+ sed -e 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' \
+ -e 's_#!/usr/bin/python$_#!/usr/bin/python2_' \
+ -i local.py server.py encrypt.py __init__.py utils.py
}
package() {
cd "$srcdir/shadowsocks-$pkgver"
- python2 setup.py install --root="$pkgdir"
+ python2 setup.py install -O1 --root="$pkgdir"
install -d "$pkgdir/etc/shadowsocks"
install -Dm644 "$srcdir/shadowsocks at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks at .service"
@@ -37,3 +39,7 @@
'36c025d78d9d2b355516360c8d4642290dc4102543eb4b1473a6f3201785ef28727ff9cb662757f013a62fa4a73f62a2655508a5ae554e124404fc3077aef8cb'
'96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')
+sha512sums=('78ba3e94b7158dec96a738c3eb618ab35e7948ef8f9a95fc4906fe1230f50f226d2d39bc0b20782de86fd3e7f76da1c203e824de94b905e0011781d0830ef0bc'
+ '36c025d78d9d2b355516360c8d4642290dc4102543eb4b1473a6f3201785ef28727ff9cb662757f013a62fa4a73f62a2655508a5ae554e124404fc3077aef8cb'
+ '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
+ 'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')
More information about the arch-commits
mailing list