summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80b9b9d77ed8ca1e0c3842d67e35b2ebcaf76225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=codespell-git
pkgver=1.14.0.r13.g85670dc
pkgrel=1
pkgdesc="Tool for fixing common misspellings in text files"
arch=('any')
url="https://github.com/codespell-project/codespell"
license=('GPL2')
depends=('python' 'python-setuptools')
makedepends=('git' 'help2man')
checkdepends=('python-pytest')
provides=('codespell')
conflicts=('codespell')
source=("git+https://github.com/codespell-project/codespell.git")
sha256sums=('SKIP')


pkgver() {
  cd "codespell"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "codespell"

  python setup.py build
  make
}

package() {
  cd "codespell"

  python setup.py install --root="$pkgdir" --optimize=1
}