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

Felix Yan fyan at archlinux.org
Thu Jul 16 15:41:42 UTC 2015


    Date: Thursday, July 16, 2015 @ 17:41:42
  Author: fyan
Revision: 137002

upgpkg: shadowsocks 2.6.11-2

add manpages and example configuration

Modified:
  shadowsocks/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-16 12:42:30 UTC (rev 137001)
+++ PKGBUILD	2015-07-16 15:41:42 UTC (rev 137002)
@@ -3,7 +3,7 @@
 
 pkgname=shadowsocks
 pkgver=2.6.11
-pkgrel=1
+pkgrel=2
 pkgdesc="A lightweight tunnel proxy"
 license=('Apache')
 url="http://pypi.python.org/pypi/shadowsocks"
@@ -10,19 +10,22 @@
 arch=('any')
 depends=('python' 'python-setuptools')
 optdepends=('libsodium: For salsa20 and chacha20 support')
+makedepends=('git')
+#checkdepends=('dante' 'bind-tools')
 install=${pkgname}.install
-source=("https://pypi.python.org/packages/source/s/shadowsocks/shadowsocks-${pkgver}.tar.gz"
+source=("git+https://github.com/shadowsocks/shadowsocks.git#tag=$pkgver"
         "shadowsocks at .service"
         "shadowsocks-server at .service")
-sha512sums=('a3827f10c1826b565950079729456b6b8df4766a5d5bedff5410dfa854ba027cf5cdef5aa6c4e9babf964dee426ff124d09d568fa9353378b3da41199f249693'
+sha512sums=('SKIP'
             '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
             'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')
 
 check() {
-  cd shadowsocks-$pkgver
+  cd shadowsocks
 
-  # Tests not included
+  # Tests require internet access
   return
+
   python tests/test.py -c tests/table.json
   python tests/test.py -c tests/aes.json
   python tests/test.py -c tests/rc4-md5.json
@@ -34,11 +37,14 @@
 }
 
 package() {
-  cd "$srcdir/shadowsocks-$pkgver"
+  cd shadowsocks
 
   python setup.py install -O1 --root="$pkgdir"
-  
-  install -d "$pkgdir/etc/shadowsocks"
+
+  install -dm755 "$pkgdir/usr/share/man/man1"
+  install -m644 debian/{ssserver.1,sslocal.1} "$pkgdir/usr/share/man/man1"
+  install -Dm644 debian/config.json "$pkgdir/etc/shadowsocks/example.json"
+
   install -Dm644 "$srcdir/shadowsocks at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks at .service"
   install -Dm644 "$srcdir/shadowsocks-server at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks-server at .service"
 }



More information about the arch-commits mailing list