blob: bb707778bfdb2d49de6ed5c1340314c3bf75a45c (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Philippe Hürlimann <p at hurlimann dot org>
_pkgname=ftfy
pkgname="python-${_pkgname}"
pkgver=6.3.1
pkgrel=1
pkgdesc="Fixes mojibake and other problems with Unicode, after the fact"
url="https://github.com/LuminosoInsight/${pkgname}"
arch=('any')
license=('MIT')
depends=('python-wcwidth')
makedepends=('python-build' 'python-hatchling' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('9b3c3d90f84fb267fe64d375a07b7f8912d817cf86009ae134aa03e1819506ec')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE*
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" CHANGELOG.md README.md
}
|