-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST mkinitcpio-38.tar.gz 82648 BLAKE2B 57c2ea2bd611a8837f5fa3deb38a76923aadbdd3d0cdfbb48b0c34a0831d3d9f14323ba9834da0c7b7f694eef28c0b5b22fb5c825885eddf35ebf2c3b8711eb7 SHA512 410d7ad18ac9e584e28b957059a7685ef087024ad0217c03190a5060807f6e944030cab2119c10e07d7fb3eb1079da34a980a2f85405eb5ef563e0981b4c725a | ||
DIST mkinitcpio-39.2.tar.gz 93739 BLAKE2B 1ea43ef49a1754717d4847add3fd12ae2440801c32e595e365ea643b16daf7609efceab47406ace73b83020bc793f7502050e8d5f22b7a4d4b82491d6e121035 SHA512 f4245dbe4482e4e45d39b7dabaf9e927e74a6c05c616762622ff2a3572126cb4093964f699ac72203347e45856a24c5bfd7ccde93a9aa19a7a5d063c04a3ebf3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="Modular initramfs image creation utility" | ||
HOMEPAGE="https://github.com/archlinux/mkinitcpio" | ||
|
||
SRC_URI="https://github.com/archlinux/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
|
||
SLOT="0" | ||
|
||
KEYWORDS="amd64 arm arm64 mips x86" | ||
|
||
IUSE="+systemd" | ||
|
||
DEPEND="sys-apps/kmod | ||
sys-apps/util-linux | ||
app-arch/libarchive | ||
app-arch/zstd | ||
sys-apps/busybox | ||
sys-apps/coreutils | ||
sys-apps/findutils | ||
sys-apps/sed | ||
app-alternatives/awk | ||
sys-apps/baselayout[-split-usr] | ||
" | ||
|
||
RDEPEND="${DEPEND} | ||
systemd? ( sys-apps/systemd[-split-usr] ) | ||
" | ||
|
||
BDEPEND=" | ||
sys-apps/busybox | ||
app-arch/libarchive | ||
app-text/asciidoc | ||
sys-apps/sed | ||
" | ||
|
||
src_install(){ | ||
default_src_install | ||
exeinto /usr/lib/initcpio/ | ||
doexe /bin/busybox | ||
insinto /usr/lib/initcpio/install | ||
newins "${FILESDIR}"/initcpio-install-systemd systemd | ||
newins "${FILESDIR}"/initcpio-install-base base | ||
insinto /usr/lib/initcpio/hooks | ||
newins "${FILESDIR}"/initcpio-hook-udev udev | ||
insinto /etc/mkinitcpio.d | ||
doins "${FILESDIR}"/linux.preset | ||
} |