summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aed65a7b1a131b9b2b08e9b6b1f938209a7b49ff (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
# Maintainer: dreamscache.d <dreamscache.d@gmail.com>
_pkgname=chared
pkgname="python-$_pkgname"
pkgver=2.0
pkgrel=1
pkgdesc="Chared is a tool for detecting the character encoding of a text in a known language."
arch=("any")
url="https://corpus.tools/wiki/Chared"
license=("BSD")
depends=("python" "python-lxml")
makedepends=("python-build" "python-installer")
provides=("$_pkgname")
source=("http://corpus.tools/raw-attachment/wiki/Downloads/$_pkgname-$pkgver.tar.gz")
sha256sums=("bba9faff24671959c385af82bbbf95cba4f83ede01f735bcb9cdc4edb762206e")

build() {
    cd "$_pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}