summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 780ac3f4a0d6c44ceccd9b56e693fb2244fbc3ef (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
# Maintainer: Peter Vágner <pvdeejay@gmail.com>

pkgname=emacs-speechd-el-git
pkgver=20180105.0b25d3e
pkgrel=2
pkgdesc="Emacs speech and Braille output interface"
url="http://devel.freebsoft.org/speechd-el"
arch=('any')
license=('GPL')
depends=('emacs')
makedepends=('git' 'make' 'texinfo')
optdepends=('speech-dispatcher: for speech output'
  'brltty: for braille support'
  'sound-icons: for playing short sounds to denote various events'
  'perl: for speechd-log-extractor script')
conflicts=('emacs-speechd-el')
provides=(emacs-speechd-el=${pkgver})
install=emacs-speechd-el-git.install
source=(git+https://github.com/brailcom/speechd-el.git)
md5sums=('SKIP')
_gitname=speechd-el

pkgver() {
  cd $srcdir/$_gitname
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
  cd $srcdir/$_gitname
  make
}

package() {
  cd $srcdir/$_gitname
  el_dir=/usr/share/emacs/site-lisp/speechd-el
  info_dir=/usr/share/info
  bin_dir=/usr/bin
  install -m 755 -d $pkgdir{$el,$info,$bin}_dir
  install -m 644 -t $pkgdir$el_dir *.el{,c}
  install -m 644 -t $pkgdir$info_dir *.info
  install -m 755 -t $pkgdir$bin_dir speechd-log-extractor
}