summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8debfd07358eff891e0c0ee53d2b2762695075b0 (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
44
45
46
47
48
49
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
_pkgname=talking-clock
pkgname=talking-clock-git
pkgver=r40.0a7fffb
pkgrel=1
pkgdesc="Highly configurable clock written in bash with soundpack and voice options."
arch=('any')
url="https://git.stormux.org/storm/$_pkgname"
license=('WTFPL')
depends=('bash')
makedepends=('git')
optdepends=('espeak: TTS support'
	'festival: TTS support'
	'flite: TTS support'
	'jq: For the current temperature'
	'translate-shell: TTS support'
	'speech-dispatcher: TTS support'
	'rhvoice-git: TTS support'
	'pulseaudio: Chime sound support'
	'sox: Chime sound support'
	'vorbis-tools: Chime sound support'
'yad: for talking-clock-gui to work')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+${url}")
md5sums=("SKIP")

pkgver()
{
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
 
package()
 {
  cd "$_pkgname"
  install -d "$pkgdir/usr/bin"
 install -d "$pkgdir/usr/share/talking-clock"
  install -m755 "src/talking-clock" "$pkgdir/usr/bin"
  install -m755 "talking-clock-gui/talking-clock-gui" "$pkgdir/usr/bin"
  install -m666 "README.md" "$pkgdir/usr/share/talking-clock"
  install -m666 "src/bell.ogg" "$pkgdir/usr/share/talking-clock"
  install -m666 "src/prepend.ogg" "$pkgdir/usr/share/talking-clock"
  install -m666 "src/15.ogg" "$pkgdir/usr/share/talking-clock"
  install -m666 "src/30.ogg" "$pkgdir/usr/share/talking-clock"
  install -m666 "src/45.ogg" "$pkgdir/usr/share/talking-clock"
  }

# vim:set ts=2 sw=2 et: