# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=python-gast
pkgver=0.7.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=('ee7c17f3f890edf8e32845bee9b616cd0ed4a0b235833b11ce6716f15675a03fc835b2df1ac6417d5332e2c162ade0fdc0533914c014537ab0526f98dd7339aa')

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
}
