archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pasta / trunk / PKGBUILD
blobf69bd514e31d5a6590a9d7bab44c4ed58d55d94d
1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
3 pkgname=python-pasta
4 pkgver=0.2.0
5 pkgrel=7
6 pkgdesc='Library to refactor python code through AST manipulation'
7 url='https://github.com/google/pasta'
8 arch=('any')
9 license=('Apache')
10 depends=('python')
11 makedepends=('python-setuptools')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/google/pasta/archive/v${pkgver}.tar.gz")
13 sha512sums=('8d5723df7f6b30e789aa5710b0e594102361f0ae1408a12529b469faf68b41b7c1273e6310f3ea07af353b0509e8ff8404dca715eb821626c289ab24f149f048')
15 build() {
16   cd "$srcdir/pasta-$pkgver"
18   python setup.py build
21 package() {
22   cd "pasta-$pkgver"
24   python setup.py install --root="$pkgdir" --optimize=1
25   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
28 # vim:set ts=2 sw=2 et: