summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 860563e95b98fa8f48d950f524b0f5a8f293d3f6 (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
# Contributor: vantu5z <vantu5z@mail.ru>

pkgname=python-translate
pkgver=3.8.0
pkgrel=1
pkgdesc="Translate is a simple but powerful translation tool written in python with support for multiple translation providers."
url="https://github.com/terryyin/translate-python"
depends=('python' 'python-click' 'python-libretranslate' 'python-requests')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-pytest-runner')
license=('MIT')
arch=('any')
source=(${pkgname}::"https://github.com/terryyin/translate-python/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('0af987a33e9dfbdd99060768e62d2e1961173442abe6baff1676fe46e442c128')


build() {
    cd "${srcdir}/translate-python-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/translate-python-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}