summaryrefslogtreecommitdiff
path: root/pcr/systemd-dummy/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2019-02-22 16:14:01 -0300
committerDavid P <megver83@parabola.nu>2019-02-22 16:14:46 -0300
commitb1359f0623ca30111f116233bd5b86fc88b3eef5 (patch)
treed64b361bca8e805275dfa1af05a59faba103887a /pcr/systemd-dummy/PKGBUILD
parent1c821f7f7035ec2668b935e30764774154e366b9 (diff)
downloadabslibre-b1359f0623ca30111f116233bd5b86fc88b3eef5.tar.gz
abslibre-b1359f0623ca30111f116233bd5b86fc88b3eef5.tar.bz2
abslibre-b1359f0623ca30111f116233bd5b86fc88b3eef5.zip
systemd-dummy: become a split package containing systemd-dummy and systemd-libs-dummy
And update the comments. The pad has the default template (so it isn't useful) and "Does not do anything with libsystemd" was, in fact, refering to libsystemd.so Also, notsystemd-libsystemd is no longer in the repos. Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/systemd-dummy/PKGBUILD')
-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[@]})
+}