summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c0abd1a0d5d3f8db3f1d4a938562675a096c593 (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
39
40
41
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=codespell-git
pkgver=2.2.2.r160.g36c8c276
pkgrel=1
pkgdesc="Tool for fixing common misspellings in text files"
arch=('any')
url="https://github.com/codespell-project/codespell"
license=('GPL2')
depends=('python')
makedepends=('git' 'help2man' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
checkdepends=('python-pytest')
provides=("codespell=$pkgver")
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 \
    -m build \
    --wheel \
    --no-isolation
}

package() {
  cd "codespell"

  python \
    -m installer \
    --destdir="$pkgdir" \
    dist/*.whl
}