# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=python-gast
pkgver=0.6.0
pkgrel=2
pkgdesc="AST that abstracts the underlying Python version "
url="https://github.com/serge-sans-paille/gast"
arch=(any)
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.io/packages/source/g/gast/gast-${pkgver}.tar.gz")
sha512sums=('a482d0ca489781b57c119169a9bc502a84ead352ed5c4edc078907e8baa4f9abd379ee01df9cad9565a33fa1d0f363bea7b5c17b7d3cf6d600ef96018b97191b')

build() {
  cd gast-$pkgver
  python setup.py build
}

package() {
  cd gast-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
