summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e878e81d5d3284728666d59e15438b1a1d08ac04 (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
37
38
39
40
41
42
43
# Maintainer: mehalter <micah at mehalter.com>
# Contributor: Ivy Foster <code@escondida.tk>
# Contributor: Star Brilliant <echo bTEzMjUzQGhvdG1haWwuY29tCg== | base64 -d>

pkgname=translate-shell-git
pkgver=0.9.6.11.r5.g0115103
pkgrel=1
pkgdesc='A command-line interface and interactive shell for Google Translate.'
arch=(i686 x86_64)
url='https://www.soimort.org/translate-shell/'
license=('custom:PublicDomain')
depends=(gawk bash)
makedepends=(git)
optdepends=(
	'fribidi: display right-to-left languages'
	'mplayer: Text-to-Speech functionality'
	'mplayer2: Text-to-Speech functionality'
	'mpv: Text-to-Speech functionality'
	'mpg123: Text-to-Speech functionality'
	'espeak: Text-to-Speech functionality'
	'rlwrap: readline-style editing and history in the interactive mode'
	'emacs: Emacs interface'
)
conflicts=(translate-shell)
provides=(translate-shell)
source=('git+https://github.com/soimort/translate-shell.git')
md5sums=(SKIP)

pkgver() {
	cd translate-shell
	git describe | sed 's,^v,,; s@-\([0-9]\+\)-@.r\1.@'
}

build() {
	cd translate-shell
	make
}

package() {
	cd translate-shell
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/translate-shell-git/LICENSE"
}