Date: Wednesday, March 8, 2023 @ 14:47:38
  Author: eworm
Revision: 470413

split off ukify

Modified:
  systemd/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-08 14:12:20 UTC (rev 470412)
+++ PKGBUILD    2023-03-08 14:47:38 UTC (rev 470413)
@@ -1,7 +1,11 @@
 # Maintainer: Christian Hesse <[email protected]>
 
 pkgbase=systemd
-pkgname=('systemd' 'systemd-libs' 'systemd-resolvconf' 'systemd-sysvcompat')
+pkgname=('systemd'
+         'systemd-libs'
+         'systemd-resolvconf'
+         'systemd-sysvcompat'
+         'systemd-ukify')
 _tag='199399bb283701b6a4aaf5ace49f56f30f38e9a3' # git rev-parse v${_tag_name}
 _tag_name=253.1
 pkgver="${_tag_name/-/}"
@@ -171,6 +175,7 @@
   optdepends=('libmicrohttpd: systemd-journal-gatewayd and 
systemd-journal-remote'
               'quota-tools: kernel-level quota management'
               'systemd-sysvcompat: symlink package to provide sysvinit 
binaries'
+              'systemd-ukify: combine kernel and initrd into a signed Unified 
Kernel Image'
               'polkit: allow administration as unprivileged user'
               'python: Unified Kernel Image with ukify'
               'curl: systemd-journal-upload, machinectl pull-tar and pull-raw'
@@ -209,6 +214,11 @@
   mv "$pkgdir"/usr/include systemd-libs/include
   mv "$pkgdir"/usr/share/man/man3 systemd-libs/man3
 
+  # ukify shipped in separate package
+  install -d -m0755 systemd-ufify/{systemd,man1}
+  mv "$pkgdir"/usr/lib/systemd/ukify systemd-ufify/systemd/
+  mv "$pkgdir"/usr/share/man/man1/ukify.1 systemd-ufify/man1/
+
   # manpages shipped with systemd-sysvcompat
   rm "$pkgdir"/usr/share/man/man8/{halt,poweroff,reboot,shutdown}.8
 
@@ -296,4 +306,17 @@
   done
 }
 
+package_systemd-ukify() {
+  pkgdesc='Combine kernel and initrd into a signed Unified Kernel Image'
+  license=('GPL2')
+  provides=('ukify')
+  depends=('binutils' 'python-pefile' 'systemd')
+  optdepends=('python-pillow: Show the size of splash image'
+              'sbsigntools: Sign the embedded kernel')
+
+  install -d -m0755 "$pkgdir"/usr/{lib,share/man}
+  mv systemd-ufify/systemd "$pkgdir"/usr/lib/systemd
+  mv systemd-ufify/man1 "$pkgdir"/usr/share/man/man1
+}
+
 # vim:ft=sh syn=sh et sw=2:

Reply via email to