app-i18n/fcitx5-configtool: bump to 5.0.12
[gentoo-zh.git] / sys-kernel / mkinitcpio / mkinitcpio-31.ebuild
blob1a04409052b4c71363c85304b9c3679b891154d1
1 # Copyright 2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 DESCRIPTION="Modular initramfs image creation utility"
7 HOMEPAGE="https://github.com/archlinux/mkinitcpio"
9 SRC_URI="https://github.com/archlinux/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
11 LICENSE="GPLv2"
13 SLOT="0"
15 KEYWORDS="amd64 x86 arm arm64 mips"
17 IUSE="+systemd"
19 DEPEND="sys-apps/kmod
20 sys-apps/util-linux
21 app-arch/libarchive
22 app-arch/zstd
23 sys-apps/busybox
24 sys-apps/coreutils
25 sys-apps/findutils
26 sys-apps/sed
27 virtual/awk
28 sys-apps/baselayout[-split-usr]
31 RDEPEND="${DEPEND}
32 systemd? ( sys-apps/systemd[-split-usr] )
35 BDEPEND="
36 sys-apps/busybox
37 app-arch/libarchive
38 app-text/asciidoc
39 sys-apps/sed
42 RESTRICT="mirror"
44 src_install(){
45 default_src_install
46 exeinto /usr/lib/initcpio/
47 doexe /bin/busybox
48 insinto /usr/lib/initcpio/install
49 newins ${FILESDIR}/initcpio-install-systemd systemd
50 newins ${FILESDIR}/initcpio-install-base base
51 newins ${FILESDIR}/initcpio-install-udev udev
52 insinto /usr/lib/initcpio/hooks
53 newins ${FILESDIR}/initcpio-hook-udev udev
54 insinto /etc/mkinitcpio.d
55 doins ${FILESDIR}/linux.preset