summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b61df3c49e007c7c3265a3e0d35d686331812194 (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
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Mufeed Ali <fushinari@protonmail.com>

pkgname=python-googletrans-git
_author=ssut
_gitname=py-googletrans
pkgver=0.r115.4f7c079
pkgrel=1
pkgdesc="Free Google Translate API for Python. Git version."
arch=('any')
license=('MIT')
url="https://github.com/ssut/py-googletrans"
depends=(
  python-setuptools
  python-httpx
)
provides=('python-googletrans')
conflicts=('python-googletrans')
source=("git+https://github.com/$_author/$_gitname.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf '0.r%s.%s' \
      "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_gitname"
  python setup.py build
}

package() {
  cd "$_gitname"
  python setup.py install --root="$pkgdir" --optimize=1
}