summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/systemd-dummy/PKGBUILD26
1 files changed, 19 insertions, 7 deletions
diff --git a/pcr/systemd-dummy/PKGBUILD b/pcr/systemd-dummy/PKGBUILD
index bc3fa3fe0..eac04d919 100644
--- a/pcr/systemd-dummy/PKGBUILD
+++ b/pcr/systemd-dummy/PKGBUILD
@@ -1,8 +1,7 @@
# Maintainer: Freemor <freemor@freemor.ca>
+# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>
-# https://pad.riseup.net/p/ParabolaSystemdDependants
-
# Notes:
# - Does *NOT* provide a specific version of systemd; if a package
# depends on a specific version, it probably is a "real" dependency,
@@ -14,17 +13,30 @@
# or ABI, and no package outside of pkgbase=systemd cares about it.
# It's absolutely silly that Artix Linux's systemd-dummy package
# includes that file.
-# - Does not do anything with libsystemd. We have more finely split
-# packages than Arch ( (not)systemd-libsystemd / libsystemd.so).
+# - Does not do anything with libsystemd.so We have more finely split
+# packages than Arch (systemd-libsystemd).
# - Sets epoch=1 to allow upgrading from Artix systemd-dummy, which
# sets pkgver=$systemd_version
-pkgname=systemd-dummy
-pkgdesc="An empty package that provides 'systemd' to satisfy packages that erronously depend on it"
+pkgbase=systemd-dummy
+pkgname=(systemd-dummy systemd-libs-dummy)
+pkgdesc='An empty package that provides '"'pkgname'"' to satisfy packages that erronously depend on it'
url='https://parabola.nu/'
-provides=('systemd')
license=('custom:Public Domain')
epoch=1
pkgver=1
pkgrel=1
arch=(any)
+
+package_systemd-dummy() {
+ pkgdesc="${pkgdesc/pkgname/${pkgname%-dummy}}"
+ provides=(${pkgname%-dummy})
+}
+
+package_systemd-libs-dummy() {
+ pkgdesc="${pkgdesc/pkgname/${pkgname%-dummy}}"
+ depends=(libsystemd.so)
+ provides=(libsystemd ${pkgname%-dummy})
+ conflicts=(libsystemd-dummy)
+ replaces=(${conflicts[@]})
+}