summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTim Schumacher2019-10-03 14:01:38 +0200
committerTim Schumacher2019-10-03 14:01:38 +0200
commit684fc3cc45ef918b60580eccc5bbe1254f418ace (patch)
tree6b682143d2117aa377d965e4c113aca28317cc21 /PKGBUILD
downloadaur-684fc3cc45ef918b60580eccc5bbe1254f418ace.tar.gz
Initial python-googletrans package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab8d057d331
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Tim Schumacher <timschumi@gmx.de>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgname=python-googletrans
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="Free Google Translate API for Python."
+arch=('any')
+license=('MIT')
+url="https://github.com/ssut/py-googletrans"
+depends=('python-setuptools' 'python-requests')
+source=("https://pypi.io/packages/source/g/googletrans/googletrans-$pkgver.tar.gz")
+sha512sums=('6a6f29542478dc128d5e5ac418fcdf71aa8f600e76bf4101295b36c4758202feed6effdf939555f8e1f9afacf0b4f3016b326a8e3f0bfadda0ed97cc7d480b4b')
+
+build() {
+ cd googletrans-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd googletrans-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+