# $Id: PKGBUILD 123528 2014-12-06 03:56:48Z fyan $
# 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.7.0
pkgrel=1
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=('fba0e016079442c9e69e2752727a1307f4110a1c62319a059650b2ab044b29d8')

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:
