Merge branch 'master' of github.com:chrys87/fenrir

This commit is contained in:
chrys 2016-10-02 02:44:37 +02:00
commit 68f4351bd5
4 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
# Maintainer: Chrys <mail@chrys.de>
_gitname='fenrir'
pkgname="${_gitname}-git"
pkgver=v0.71.117.g4d87b22
pkgrel=1
pkgdesc='A user space console screen reader written in python3'
arch=('armv7' 'i686' 'x86_64')
url='https://github.com/chrys87/${_pkgname}'
license=('MIT')
depends=('python' 'python-espeak' 'python-evdev')
optdepends=('brltty: For Braille support'
'gstreamer: for soundicons via gstreamer'
'sox: The default sound driver'
'python-enchant: for spell check functionality')
makedepends=('git')
provides=('fenrir')
conflicts=('fenrir')
install="$pkgname".install
source=("git+https://github.com/chrys87/${_gitname}.git"
'fenrir.service'
'fenrir.sh'
'fenrir-git.install')
pkgver()
{
cd "$srcdir/$_gitname"
local ver="$(git describe --tags)"
echo "${ver//-/.}"
}
package()
{
cd "$srcdir/$_gitname"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/etc/fenrir"
}
# vim: set ts=2 sw=2 et:

View File

@ -0,0 +1,11 @@
post_install() {
_alert
}
_alert() {
cat << EOF
To have fenrir start at boot:
sudo systemctl enable fenrir
EOF
}

View File

@ -0,0 +1,13 @@
[Unit]
Description=Fenrir screenreader
[Service]
Type=forking
PIDFile=/var/run/fenrir.pid
ExecStart=/usr/bin/fenrir
Restart=on-abort
#Group=fenrir
#User=fenrir
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,4 @@
#!/bin/bash
cd fenrir/
python3 fenrir.py