summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5edbfd1f5377760693b15cb2ac2c756cdeeb749 (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
# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>

pkgname=('pronounce-git')

_gitname=pronounce
#The actual value is calculated by pkgver() function
pkgver=v1.2.0
pkgrel=1

pkgdesc="A command line interface for English words pronunciation"
url="https://github.com/momeni/${_gitname}"

arch=('any')
license=('GPL3')

depends=('ffmpeg' 'wget' 'coreutils')
optdepends=(
  'w3m: viewing definition of words in w3m; a CLI browser'
  'firefox: viewing definition of words in Mozilla Firefox'
)
conflicts=('pronounce')
provides=('pronounce')
makedepends=('git')
source=('git+https://github.com/momeni/pronounce.git')
sha256sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --always | sed 's|-|.|g'
}

package() {
  cd "${srcdir}/${_gitname}"
  install -D -m 755 pronounce "${pkgdir}/usr/bin/pronounce"
  install -D -m 644 README.md "${pkgdir}/usr/share/pronounce/README.md"
}