summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Schumacher2019-10-03 14:01:38 +0200
committerTim Schumacher2019-10-03 14:01:38 +0200
commit684fc3cc45ef918b60580eccc5bbe1254f418ace (patch)
tree6b682143d2117aa377d965e4c113aca28317cc21
downloadaur-684fc3cc45ef918b60580eccc5bbe1254f418ace.tar.gz
Initial python-googletrans package
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD25
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7bdaa49f4ba
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-googletrans
+ pkgdesc = Free Google Translate API for Python.
+ pkgver = 2.4.0
+ pkgrel = 1
+ url = https://github.com/ssut/py-googletrans
+ arch = any
+ license = MIT
+ depends = python-setuptools
+ depends = python-requests
+ source = https://pypi.io/packages/source/g/googletrans/googletrans-2.4.0.tar.gz
+ sha512sums = 6a6f29542478dc128d5e5ac418fcdf71aa8f600e76bf4101295b36c4758202feed6effdf939555f8e1f9afacf0b4f3016b326a8e3f0bfadda0ed97cc7d480b4b
+
+pkgname = python-googletrans
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..43e40455076
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src/
+pkg/
+*.pkg.tar.xz
+*.tar.gz
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
+}
+