This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 10th, 2010  |  syntax: Bash  |  size: 0.75 KB  |  views: 120  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Hylix <hylixx@gmail.com>
  2.  
  3. pkgname=socksipy
  4. pkgver=1.00
  5. pkgrel=4
  6. pkgdesc="Provides a socket-like interface that supports connections to any TCP service through the use of a SOCKS4, SOCKS5 or HTTP proxy. "
  7. arch=('any')
  8. license=('BSD')
  9. url="http://socksipy.sourceforge.net/"
  10. depends=('python2')
  11. makedepends=()
  12. optdepends=()
  13. source=("http://downloads.sourceforge.net/project/socksipy/socksipy/SocksiPy%20${pkgver}/SocksiPy.tar.gz")
  14. md5sums=('3be8be26230bc9eca94eb3335740ed5e')
  15. _pythonversion=`python2 -V 2>&1 | sed 's/Python[[:space:]]\+\([0-9]\+\.[0-9]\+\).*/\1/'`
  16.  
  17. build() {
  18.   install -Dm644 socks.py ${pkgdir}/usr/lib/python${_pythonversion}/socks.py
  19.  
  20.   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  21. }
clone this paste RAW Paste Data