2023-01-11 00:40:45 +00:00
|
|
|
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
|
|
pkgname=py3-codespell
|
|
|
|
_pkgname=${pkgname#py3-}
|
2023-05-05 05:16:38 +00:00
|
|
|
pkgver=2.2.4
|
|
|
|
pkgrel=1
|
2023-01-11 00:40:45 +00:00
|
|
|
pkgdesc="Fix common misspellings in text files, primarily source code"
|
|
|
|
options="!check" # No testsuite
|
|
|
|
url="https://github.com/codespell-project/codespell/"
|
|
|
|
arch="noarch"
|
|
|
|
license="GPL-2.0-only"
|
2023-05-05 05:16:38 +00:00
|
|
|
makedepends="
|
|
|
|
py3-gpep517
|
|
|
|
py3-setuptools
|
|
|
|
py3-setuptools_scm
|
|
|
|
py3-wheel
|
|
|
|
"
|
2023-01-11 00:40:45 +00:00
|
|
|
checkdepends="py3-pytest"
|
|
|
|
depends="py3-chardet"
|
2023-05-05 05:16:38 +00:00
|
|
|
subpackages="$pkgname-pyc"
|
2023-01-11 00:40:45 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/codespell-project/codespell/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
|
|
|
|
build() {
|
2023-05-05 05:16:38 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
|
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2023-01-11 00:40:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-05-05 05:16:38 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
|
|
|
dist/*.whl
|
2023-01-11 00:40:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-05-05 05:16:38 +00:00
|
|
|
fcf303af14d7f6c081c07a37376ac2c7068b89890073f81414cf9e30638681138f78b5b04bfe5282193bbaa83162b7b73a4e25e71b73b7f9cc0a5f5c623b5786 py3-codespell-2.2.4.tar.gz
|
2023-01-11 00:40:45 +00:00
|
|
|
"
|