aboutsummaryrefslogtreecommitdiffstats
path: root/community/elogind/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/elogind/APKBUILD')
-rw-r--r--community/elogind/APKBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/community/elogind/APKBUILD b/community/elogind/APKBUILD
index c4bdd78c8e..264c17c2ce 100644
--- a/community/elogind/APKBUILD
+++ b/community/elogind/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
-# Maintainer: Leo <thinkabit.ukim@gmail.com>
+# Maintainer:
pkgname=elogind
pkgver=246.10
-pkgrel=0
+pkgrel=3
pkgdesc="Standalone fork of systemd's elogind"
url="https://github.com/elogind/elogind"
arch="all"
@@ -42,9 +42,16 @@ source="https://github.com/elogind/elogind/archive/v$pkgver/elogind-v$pkgver.tar
fix-mips-detection.patch
fix-version.patch
"
+case "$CARCH" in
+ s390x|mips|mips64|riscv64) ;;
+ *) makedepends="$makedepends polkit-dev" ;;
+esac
build() {
- [ "$CARCH" == "s390x" ] && export CFLAGS="$CFLAGS -D__IGNORE_pkey_mprotect -DSO_PEERSEC=31"
+ case "$CARCH" in
+ s390x|mips|mips64|riscv64) _polkit=false; export CFLAGS="$CFLAGS -D__IGNORE_pkey_mprotect -DSO_PEERSEC=31" ;;
+ *) _polkit=true ;;
+ esac
export LDFLAGS="$LDFLAGS -lintl"
abuild-meson \
-Dcgroup-controller=elogind \
@@ -53,7 +60,7 @@ build() {
-Dreboot-path=/sbin/reboot \
-Ddefault-hierarchy=hybrid \
-Ddefault-kill-user-processes=false \
- -Dpolkit=false \
+ -Dpolkit=$_polkit \
-Dman=true \
build
meson compile ${JOBS:+-j ${JOBS}} -C build
@@ -69,7 +76,7 @@ package() {
# Claim compatiblity with systemd and systemd-logind
ln -s libelogind.pc "$pkgdir"/usr/lib/pkgconfig/libsystemd.pc
ln -s libelogind.pc "$pkgdir"/usr/lib/pkgconfig/libsystemd-logind.pc
- ln -s "$pkgdir"/usr/include/elogind "$pkgdir"/usr/include/systemd
+ ln -s /usr/include/elogind "$pkgdir"/usr/include/systemd
# Install headers from elogind
install -Dm644 src/systemd/sd-id128.h usr/include/sd-id128.h