# $Id: PKGBUILD 72838 2012-06-23 19:26:04Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
pkgname=shedskin
pkgver=0.9.2
pkgrel=1
pkgdesc="Python to C++ compiler"
arch=('any')
url="http://code.google.com/p/shedskin/"
license=('GPL2')
depends=('pcre' 'gc' 'python2')
conflicts=('shedskin-svn')
source=("http://shedskin.googlecode.com/files/$pkgname-$pkgver.tgz"
        "$pkgname.py")
sha256sums=('16909f13a9c0e43d3ca1de871762908620011068c0f3d8a30afe283034c0c7e8'
            '26527327dba7d6a34c37a931bfce925d7802535626a92f35a2890d698325c712')

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -d "$pkgdir/usr/bin"
  install -Dm755 "../$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  python2 setup.py install --prefix="$pkgdir/usr"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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