mkinitcpio: add xbps trigger

This commit is contained in:
Andrea Brancaleoni 2015-09-05 12:26:38 +02:00
parent fd2d7b7816
commit 7ec9622804
3 changed files with 36 additions and 1 deletions

1
srcpkgs/mkinitcpio-xbps Symbolic link
View file

@ -0,0 +1 @@
mkinitcpio

View file

@ -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 <<HELPEOF
This hook will add xbps to recover broken voidlinux installations.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -1,7 +1,7 @@
# Template file for 'mkinitcpio'
pkgname=mkinitcpio
version=18
revision=5
revision=6
noarch=yes
build_style=gnu-makefile
depends="busybox-static bsdcpio bash"
@ -71,3 +71,12 @@ mkinitcpio-mdadm_package() {
vinstall ${FILESDIR}/mdadm_udev_install 644 usr/lib/initcpio/install mdadm_udev
}
}
mkinitcpio-xbps_package() {
depends="${sourcepkg}>=${version}_${revision} xbps"
short_desc+=" - xbps support"
noarch=yes
pkg_install() {
vinstall ${FILESDIR}/xbps_install 644 usr/lib/initcpio/install xbps
}
}