summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e90f015a710dfc66138b325cf734b8b26ba96aeb (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
37
38
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=codespell-git
pkgver=1.14.0.r258.g3743efc1
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 \
    --optimize 1 \
    --root "$pkgdir"
}