summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/openrc-accessible/PKGBUILD53
1 files changed, 28 insertions, 25 deletions
diff --git a/pcr/openrc-accessible/PKGBUILD b/pcr/openrc-accessible/PKGBUILD
index 15ab6f902..bd73396f7 100644
--- a/pcr/openrc-accessible/PKGBUILD
+++ b/pcr/openrc-accessible/PKGBUILD
@@ -1,16 +1,21 @@
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Maintainer (Artix): artoo <artoo@cromnix.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_url="https://raw.githubusercontent.com/gentoo/gentoo/master"
+_sed_args=(-e 's|/var/run|/run|g')
+prefix=true
+
+$_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g')
+
pkgbase=openrc-accessible
pkgname=('brltty-openrc'
- 'espeakup-openrc')
-pkgver=20170309
-pkgrel=1.1
+ 'espeakup-openrc')
+pkgver=20170926
+pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
-url="https://github.com/manjaro/packages-openrc"
+url="https://github.com/artix-linux"
license=('GPL2')
groups=('openrc-accessible')
conflicts=('systemd-sysvcompat')
@@ -22,37 +27,35 @@ sha256sums=('4dd0338d2f9943165d5922c8964ca3456e8e8b67b37cf5f2652435bc1f644c41'
'9bfaf3950744a9376cdd74240c3e6b9a92d7b17a16a3b9eb0485f5fd279ff963')
pkgver() {
- date +%Y%m%d
+ date +%Y%m%d
}
_inst_initd(){
- install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
- sed -e 's|/var/run|/run|g' \
- -e 's|/usr/sbin|/usr/bin|g' \
- -i ${pkgdir}/etc/init.d/$1
+ sed ${_sed_args[@]} -i ${pkgdir}/etc/init.d/$1
}
_inst_confd(){
- install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+ 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')
+package_brltty-openrc() {
+ pkgdesc="OpenRC brltty init script"
+ depends=('openrc' 'brltty')
- _inst_confd 'espeakup'
- _inst_initd 'espeakup'
-}
+ _inst_initd 'brltty'
-package_brltty-openrc() {
- pkgdesc="OpenRC brltty init script"
- depends=('openrc' 'brltty')
+ sed -e 's|/bin/brltty|/usr/bin/brltty|' \
+ -i "${pkgdir}/etc/init.d/brltty"
+}
- _inst_initd 'brltty'
+package_espeakup-openrc() {
+ pkgdesc="OpenRC espeakup init script"
+ depends=('openrc' 'espeakup')
+# optdepends=('alsa-utils-openrc: alsa support')
+ backup=('etc/conf.d/espeakup')
- sed -e 's|/bin/brltty|/usr/bin/brltty|' \
- -i "${pkgdir}/etc/init.d/brltty"
+ _inst_confd 'espeakup'
+ _inst_initd 'espeakup'
}