# $Id: PKGBUILD 116846 2014-08-04 11:26:22Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: giniu <gginiu@gmail.com>

pkgbase=python-foolscap
pkgname=python2-foolscap
pkgver=0.6.4
pkgrel=3
pkgdesc='RPC protocol for Python and Twisted'
arch=('any')
url='http://foolscap.lothar.com/'
license=('MIT')
depends=('python2-twisted' 'python2-pyopenssl')
makedepends=('python2-distribute')
conflicts=('python-foolscap<=0.6.3')
replaces=('python-foolscap<=0.6.3')
options=('!emptydirs')
source=("http://foolscap.lothar.com/releases/foolscap-$pkgver.tar.gz")
sha256sums=('74b283dd68a3c9d68ebf4e9b4ebf5cfb37480915b6a808ac930fe858a66f8d99')

package_python2-foolscap() {
  cd "foolscap-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
