summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/elogind/PKGBUILD46
-rw-r--r--pcr/elogind/elogind-docs.patch19
-rw-r--r--pcr/elogind/elogind-lrt.patch10
-rw-r--r--pcr/elogind/elogind.install8
4 files changed, 83 insertions, 0 deletions
diff --git a/pcr/elogind/PKGBUILD b/pcr/elogind/PKGBUILD
new file mode 100644
index 000000000..daf17f204
--- /dev/null
+++ b/pcr/elogind/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=elogind
+pkgver=219.12
+pkgrel=1
+pkgdesc="The systemd project's logind, extracted to a standalone package"
+arch=('i686' 'x86_64')
+url="https://github.com/wingo/elogind"
+license=('GPL')
+groups=('openrc-desktop')
+depends=('dbus' 'polkit' 'libudev.so')
+makedepends=('libcap' 'intltool' 'libtool' 'gperf' 'gtk-doc')
+options=('!libtool')
+install=elogind.install
+source=("$pkgname-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+ 'elogind-docs.patch'
+ 'elogind-lrt.patch')
+sha256sums=('80241494f5c794e8501ccf570ac805275ace368755780f38a18762fd06243f95'
+ 'cafea7a13159dee700902e3837aab015d9521dfe122840faf2d909b5dc02229e'
+ 'a9227ed4e97117ab5751de38c19813560a12f51379ccd882a89e7ef9842659ac')
+
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np 1 -i $srcdir/elogind-docs.patch
+ patch -Np 1 -i $srcdir/elogind-lrt.patch
+ sed -e "s|/bin/false|/usr/lib/elogind/elogind|" \
+ -i src/login/org.freedesktop.login1.service
+ autoreconf -vim
+}
+
+build() {
+ cd $srcdir/${pkgname}-${pkgver}
+ intltoolize
+ ./configure \
+ --sysconfdir=/etc \
+ --prefix=/usr \
+ --libexecdir=/usr/lib
+
+ make
+}
+
+package() {
+ cd $srcdir/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/pcr/elogind/elogind-docs.patch b/pcr/elogind/elogind-docs.patch
new file mode 100644
index 000000000..4763be2e6
--- /dev/null
+++ b/pcr/elogind/elogind-docs.patch
@@ -0,0 +1,19 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -253,16 +253,6 @@
+ dist_bashcompletion_DATA =
+ dist_zshcompletion_DATA =
+
+-dist_doc_DATA = \
+- README \
+- NEWS \
+- LICENSE.LGPL2.1 \
+- LICENSE.GPL2 \
+- LICENSE.MIT \
+- src/libelogind/sd-bus/PORTING-DBUS1 \
+- src/libelogind/sd-bus/DIFFERENCES \
+- src/libelogind/sd-bus/GVARIANT-SERIALIZATION
+-
+ @INTLTOOL_POLICY_RULE@
+
+ # ------------------------------------------------------------------------------
diff --git a/pcr/elogind/elogind-lrt.patch b/pcr/elogind/elogind-lrt.patch
new file mode 100644
index 000000000..19055fa30
--- /dev/null
+++ b/pcr/elogind/elogind-lrt.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -778,6 +778,7 @@
+
+ libelogind_core_la_LIBADD = \
+ $(UDEV_LIBS) \
++ -lrt \
+ libelogind-internal.la
+
+ if HAVE_ACL
diff --git a/pcr/elogind/elogind.install b/pcr/elogind/elogind.install
new file mode 100644
index 000000000..d5a5ec515
--- /dev/null
+++ b/pcr/elogind/elogind.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo "Add to /etc/pam.d/sddm-greeter"
+ echo "session optional pam_elogind.so"
+}
+
+post_upgrade() {
+ post_install $1
+}