summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Vágner2015-10-29 07:59:41 +0100
committerPeter Vágner2015-10-29 07:59:41 +0100
commit0576d795fc5ae5c5a78cc78f7a4e06c3a6787ec3 (patch)
tree58f91991d1717d208d9970202808ace1ce88c600
downloadaur-0576d795fc5ae5c5a78cc78f7a4e06c3a6787ec3.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
-rw-r--r--emacs-speechd-el-git.install21
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0c68e0d316f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = emacs-speechd-el-git
+ pkgdesc = Emacs speech and Braille output interface
+ pkgver = 20141025.3d72981
+ pkgrel = 1
+ url = http://devel.freebsoft.org/speechd-el
+ install = emacs-speechd-el-git.install
+ arch = any
+ license = GPL
+ depends = emacs
+ optdepends = speech-dispatcher: for speech output
+ optdepends = brltty: for braille support
+ provides = emacs-speechd-el=$pkgver
+ conflicts = emacs-speechd-el
+ source = git://git.freebsoft.org/git/speechd-el
+ md5sums = SKIP
+
+pkgname = emacs-speechd-el-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f961949cc04
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Peter Vágner <pvdeejay@gmail.com>
+
+pkgname=emacs-speechd-el-git
+pkgver=20141025.3d72981
+pkgrel=1
+pkgdesc="Emacs speech and Braille output interface"
+url="http://devel.freebsoft.org/speechd-el"
+arch=('any')
+license=('GPL')
+depends=('emacs')
+optdepends=('speech-dispatcher: for speech output'
+ 'brltty: for braille support')
+conflicts=('emacs-speechd-el')
+provides=('emacs-speechd-el=$pkgver')
+install=emacs-speechd-el-git.install
+source=(git://git.freebsoft.org/git/speechd-el)
+md5sums=('SKIP')
+_gitname=speechd-el
+
+pkgver() {
+ cd $srcdir/$_gitname
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+build() {
+ cd $srcdir/$_gitname
+ make compile
+ make info
+}
+
+package() {
+ cd $srcdir/$_gitname
+ el_dir=/usr/share/emacs/site-lisp/speechd-el
+ info_dir=/usr/share/info
+ install -m 755 -d $pkgdir{$el,$info}_dir
+ install -m 644 -t $pkgdir$el_dir *.el{,c}
+ install -m 644 -t $pkgdir$info_dir *.info
+}
diff --git a/emacs-speechd-el-git.install b/emacs-speechd-el-git.install
new file mode 100644
index 00000000000..ce926accc5a
--- /dev/null
+++ b/emacs-speechd-el-git.install
@@ -0,0 +1,21 @@
+post_install() {
+ install-info /usr/share/info/speechd-el.info.gz /usr/share/info/dir
+ cat <<EOF
+Add the following line to your ~/.emacs:
+ (autoload 'speechd-speak "speechd-speak" nil t)
+If you would like to start voice or braille output on emacs startup also add:
+ (speechd-speak)
+If you would like to disable braille output also add:
+ (setq speechd-out-active-drivers '(ssip ))
+To launch speechd-el manually you can do the following inside emacs:
+ M-x speechd-speak RET
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ install-info --delete /usr/share/info/speechd-el.info.gz /usr/share/info/dir
+}