Skip to content

Commit

Permalink
archlinux: package tools for fetching dom0 updates
Browse files Browse the repository at this point in the history
Add qubes-vm-dom0-updates subpackage, similar to other distributions.
  • Loading branch information
marmarek committed Jan 21, 2025
1 parent f72a393 commit 6b513b4
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion archlinux/PKGBUILD.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Frédéric Pierret (fepitre) <[email protected]>

pkgname=(qubes-vm-core qubes-vm-networking qubes-vm-keyring qubes-vm-passwordless-root)
pkgname=(qubes-vm-core qubes-vm-networking qubes-vm-keyring qubes-vm-passwordless-root qubes-vm-dom0-updates)
pkgver=@VERSION@
pkgrel=@REL@
pkgdesc="The Qubes core files for installation inside a Qubes VM."
Expand Down Expand Up @@ -204,3 +204,29 @@ package_qubes-vm-passwordless-root() {
USER_DROPIN_DIR=/usr/lib/systemd/user \
DIST=archlinux
}

package_qubes-vm-dom0-updates() {
pkgdesc="Qubes OS tools for fetching dom0 updates"
depends=(
qubes-vm-core
qubes-vm-networking
python
dnf
)

cd "${_pkgnvr}"
make -C package-managers install \
DESTDIR="$pkgdir" \
SBINDIR=/usr/bin \
LIBDIR=/usr/lib \
SYSLIBDIR=/usr/lib \
SYSTEM_DROPIN_DIR=/usr/lib/systemd/system \
USER_DROPIN_DIR=/usr/lib/systemd/user \
DIST=archlinux

# already included in the main package
rm -f "${pkgdir}/usr/lib/qubes/upgrades-installed-check"
rm -f "${pkgdir}/usr/lib/qubes/upgrades-status-notify"
# not relevant for dom0 updates
rm -f "${pkgdir}/usr/lib/environment.d/60-gnome-software-fix.conf"
}

0 comments on commit 6b513b4

Please sign in to comment.