blob: d50d2df4b5b16a7c504f1af8eaf649f3cdbd8f1b (
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
|
# Maintainer: vantu5z <vantu5z@mail.ru>
pkgname=python-translate
pkgver=3.6.1
pkgrel=2
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-libretranslate')
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=('28ddafe090847031a46f626fd06a2adaff067ff9f7c15234e05b196c9393f7f1')
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
}
|