summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19efcadc85ddd0ac9bf7c555e2a74fb5536a2c35 (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
pkgbase='python-better-profanity'
pkgname=('python-better-profanity')
_module='better_profanity'
pkgver='0.7.0'
pkgrel=1
pkgdesc="Blazingly fast cleaning swear words (and their leetspeak) in strings"
url="https://github.com/snguyenthanh/better_profanity"
depends=('python')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('8a6fdc8606d7471e7b5f6801917eca98ec211098262e82f62da4f5de3a73145b')

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

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