From 7ec9622804f4795cad69b49bf6e4380e004bae8c Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 5 Sep 2015 12:26:38 +0200 Subject: [PATCH] mkinitcpio: add xbps trigger --- srcpkgs/mkinitcpio-xbps | 1 + srcpkgs/mkinitcpio/files/xbps_install | 25 +++++++++++++++++++++++++ srcpkgs/mkinitcpio/template | 11 ++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 120000 srcpkgs/mkinitcpio-xbps create mode 100644 srcpkgs/mkinitcpio/files/xbps_install diff --git a/srcpkgs/mkinitcpio-xbps b/srcpkgs/mkinitcpio-xbps new file mode 120000 index 0000000000..dd6b17ac57 --- /dev/null +++ b/srcpkgs/mkinitcpio-xbps @@ -0,0 +1 @@ +mkinitcpio \ No newline at end of file diff --git a/srcpkgs/mkinitcpio/files/xbps_install b/srcpkgs/mkinitcpio/files/xbps_install new file mode 100644 index 0000000000..24143b6d6a --- /dev/null +++ b/srcpkgs/mkinitcpio/files/xbps_install @@ -0,0 +1,25 @@ +#!/bin/bash + +build() { + for bin in /usr/bin/xbps-*; do + add_binary "$bin" + done + + for key in /var/db/xbps/keys/*; do + add_file "$key" + done + + for conf in /usr/share/xbps.d/*; do + add_file "$conf" + done + + add_runscript +} + +help() { + cat <