summaryrefslogtreecommitdiff
path: root/pcr/openrc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openrc/PKGBUILD')
-rw-r--r--pcr/openrc/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/pcr/openrc/PKGBUILD b/pcr/openrc/PKGBUILD
index 6e31e3700..3aa478f2e 100644
--- a/pcr/openrc/PKGBUILD
+++ b/pcr/openrc/PKGBUILD
@@ -5,8 +5,8 @@
_url="https://github.com/OpenRC/openrc/archive"
pkgname=openrc
-pkgver=0.20.4
-pkgrel=1.1
+pkgver=0.20.5
+pkgrel=1
pkgdesc="Gentoo's universal init system"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.gentoo.org/proj/en/base/openrc/"
@@ -15,6 +15,7 @@ depends=('psmisc' 'sysvinit')
optdepends=('netifrc: Network Interface Management Scripts'
'networkmanager-openrc: NetworkManager'
'connman-openrc: connman')
+makedepends=('lsb-release')
conflicts=('systemd-sysvcompat' 'openrc-core')
replaces=('openrc-core')
install=${pkgname}.install
@@ -28,11 +29,16 @@ backup=('etc/rc.conf'
source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz"
"${pkgname}.logrotate"
'use-optional-modules-load-d.patch')
-sha256sums=('162018f2cba6d8df74daeca40522ce716370d67f19b8592d4beaa2df5435cee3'
+sha256sums=('3929193306f6033547331f65bcddb01c23edc770f725cc4750a252574b66aef4'
'0b44210db9770588bd491cd6c0ac9412d99124c6be4c9d3f7d31ec8746072f5c'
'54e0cfb59b83ad42ec85486b99b7fed52ccbc8f98f0f113668eacf48a24a2d03')
-_args=(BRANDING="Parabola")
+if [ -f /etc/lsb-release ]; then
+ . /etc/lsb-release
+ _args=(BRANDING="$DISTRIB_DESCRIPTION")
+else
+ _args=(BRANDING='Unknown Linux')
+fi
_args+=(SYSCONFDIR=/etc)
_args+=(PREFIX=/usr)
_args+=(SBINDIR=/usr/bin)
@@ -67,5 +73,5 @@ package() {
install -d ${pkgdir}/usr/lib/rc/cache
- install -Dm644 ${srcdir}//${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}