From acf706e4552b6402091a1b51588452182c7aabef Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Thu, 25 Aug 2016 13:55:34 -0500 Subject: openrc-accessible: add new package to [pcr] --- pcr/openrc-accessible/PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pcr/openrc-accessible/PKGBUILD (limited to 'pcr/openrc-accessible/PKGBUILD') diff --git a/pcr/openrc-accessible/PKGBUILD b/pcr/openrc-accessible/PKGBUILD new file mode 100644 index 000000000..a1d1ca21d --- /dev/null +++ b/pcr/openrc-accessible/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer (Manjaro): artoo +# Maintainer: Omar Vega Ramos + +_url="https://raw.githubusercontent.com/gentoo/gentoo/master" + +pkgbase=openrc-accessible +pkgname=('brltty-openrc' + 'espeakup-openrc') +pkgver=20160823 +pkgrel=1 +pkgdesc="OpenRC init scripts" +arch=('any') +url="https://github.com/manjaro/packages-openrc" +license=('GPL2') +groups=('openrc-accessible') +conflicts=('systemd-sysvcompat') +source=("brltty.initd::${_url}/app-accessibility/brltty/files/brltty.rc" + "espeakup.confd::${_url}/app-accessibility/espeakup/files/espeakup.confd" + "espeakup.initd::${_url}/app-accessibility/espeakup/files/espeakup.rc") +sha256sums=('df59d6b7b884207c09a098188b8418944581c47ed19a1fac9725f847e4281e7f' + '32e6de11417ebb199a7bf46eb8cf77054b1af1c9f4bcc80b856b34758830eb9f' + 'ac7ea45ed050ba60b618e60c76b3c8c79496f7b837a34246ed328230cf5934cf') + +pkgver() { + date +%Y%m%d +} + +_inst_initd(){ + install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 + + sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \ + -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|' \ + -e 's|/var/run|/run|g' \ + -e 's|/usr/sbin|/usr/bin|g' \ + -i ${pkgdir}/etc/init.d/$1 +} + +_inst_confd(){ + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 +} + +package_espeakup-openrc() { + pkgdesc="OpenRC espeakup init script" + depends=('openrc' 'espeakup') + optdepends=('alsa-utils-openrc: alsa support') + backup=('etc/conf.d/espeakup') + + _inst_confd 'espeakup' + _inst_initd 'espeakup' +} + +package_brltty-openrc() { + pkgdesc="OpenRC brltty init script" + depends=('openrc' 'brltty') + + _inst_initd 'brltty' + + sed -e 's|/bin/brltty|/usr/bin/brltty|' \ + -i "${pkgdir}/etc/init.d/brltty" +} -- cgit v1.2.3