summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c8682ff04ac8ce4316ac337faf3e2a00fa5f583 (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
42
43
44
45
46
# Maintainer: Tobias Boesch <tobias.boesch at googlemail dot com>
_name=alt-profanity-check
pkgname=python-$_name
pkgver=1.6.1
pkgrel=1
pkgdesc="A fast, robust library to check for offensive language in strings, \
    dropdown replacement of \"profanity-check\"".
arch=(any)
url="https://github.com/dimitrismistriotis/alt-profanity-check"
# Upstream only signs commits, not tags. Using commit to be able to verify the source.
# https://github.com/KnossosNET/Knossos.NET/commit/1170fe9d18d9ca8af34ba08ec3cbe99abd94225a
_commit='1170fe9d18d9ca8af34ba08ec3cbe99abd94225a'
license=(MIT)
depends=(
    python
    python-setuptools
    python-joblib
    python-numpy
)
provides=(
    profanity-check
)
makedepends=(
    git
    python-build
    python-installer
    python-wheel
)
validpgpkeys=(
  # Fingerprint from gpg --show-keys ./keys/pgp/968479A1AFF927E37D1A566BB5690EEEBB952194.asc
  # Key from https://github.com/web-flow.gpg
  968479A1AFF927E37D1A566BB5690EEEBB952194
)
source=(
    "git+$url.git#commit=${_commit}?signed"
)
sha256sums=('SKIP')
build() {
    cd $_name
    python -m build --wheel --no-isolation
}
package() {
    cd $_name
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}