summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f09ead4e86cf7489f867e32622741870a200728 (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
# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>

_pkgname=charamel
pkgname=python-charamel
pkgver=1.0.0
pkgrel=1
pkgdesc="Truly Universal Encoding Detection in Python"
url="https://pypi.org/project/charamel/"
depends=('python')
makedepends=('python-setuptools')
license=('Apache')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")

sha256sums=('ce0a81979b7602c5ede8449e836119b045a258222a16512c696852c37b1047e5')

#tests require git-lfs checkout which then also requires python-dephell for converting poetry pyproject.toml
#check() {
#    cd "${srcdir}"/${_pkgname}-${pkgver}
#    pytest tests
#}

build() {
    cd "${srcdir}"/${_pkgname}-${pkgver}
    python setup.py build
}

package() {
    cd "${srcdir}"/${_pkgname}-${pkgver}
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}