From 348e4462d0e0a837965eb46db78c8908234a7e62 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 1 Oct 2016 20:42:20 -0400 Subject: [PATCH] Added partially complete PKGBUILD for Arch LInux like systems in the contrib directory. --- contrib/fenrir-git/PKGBUILD | 41 +++++++++++++++++++++++++++ contrib/fenrir-git/fenrir-git.install | 11 +++++++ contrib/fenrir-git/fenrir.service | 13 +++++++++ contrib/fenrir-git/fenrir.sh | 4 +++ 4 files changed, 69 insertions(+) create mode 100644 contrib/fenrir-git/PKGBUILD create mode 100644 contrib/fenrir-git/fenrir-git.install create mode 100644 contrib/fenrir-git/fenrir.service create mode 100644 contrib/fenrir-git/fenrir.sh diff --git a/contrib/fenrir-git/PKGBUILD b/contrib/fenrir-git/PKGBUILD new file mode 100644 index 00000000..3fe59c46 --- /dev/null +++ b/contrib/fenrir-git/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Storm Dragon +# Maintainer: Chrys + +_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: diff --git a/contrib/fenrir-git/fenrir-git.install b/contrib/fenrir-git/fenrir-git.install new file mode 100644 index 00000000..973d87ac --- /dev/null +++ b/contrib/fenrir-git/fenrir-git.install @@ -0,0 +1,11 @@ +post_install() { +_alert +} + +_alert() { +cat << EOF +To have fenrir start at boot: +sudo systemctl enable fenrir +EOF +} + diff --git a/contrib/fenrir-git/fenrir.service b/contrib/fenrir-git/fenrir.service new file mode 100644 index 00000000..2c832151 --- /dev/null +++ b/contrib/fenrir-git/fenrir.service @@ -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 diff --git a/contrib/fenrir-git/fenrir.sh b/contrib/fenrir-git/fenrir.sh new file mode 100644 index 00000000..eb8d596f --- /dev/null +++ b/contrib/fenrir-git/fenrir.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd fenrir/ +python3 fenrir.py +