# $Id: PKGBUILD 118209 2014-09-03 02:22:22Z anatolik $
# Maintainer: Anatol Pomozov <anatol@google.com>
# Contributor: Lucas De Marchi <lucas.de.marchi@gmail.com>

pkgname=codespell
pkgver=1.7
pkgrel=1
pkgdesc='Fix common misspellings in source code'
url='https://github.com/lucasdemarchi/codespell'
license=(GPL)
arch=(any)
depends=(python)
source=(https://github.com/lucasdemarchi/codespell/archive/v$pkgver.tar.gz)
sha256sums=('dd82e0031df8f726202fe76ba73075fd2877ded57bba9c16152bd141261660d2')

prepare() {
  # fix build bug
  cd codespell-$pkgver
  sed -i 's/^install:$/install: codespell/' Makefile
}

package() {
  cd codespell-$pkgver
  make install DESTDIR="$pkgdir"
}
