Added mkinitcpio

This commit is contained in:
Gerben Jan Dijkman
2022-01-15 01:58:52 +01:00
parent ec490d4f67
commit b5076efe59
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Arch Linux initramfs generation tools"
HOMEPAGE="https://github.com/archlinux/mkinitcpio"
SRC_URI="https://github.com/archlinux/mkinitcpio/releases/download/v${PV}/mkinitcpio-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm64"
RDEPEND=""
DEPEND="${RDEPEND}"
BDEPEND=""
src_compile() {
local myemakeargs=(
AR="${AR}"
CC="${CC}"
HOSTCC="${BUILD_CC}"
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)'
HOSTLDFLAGS="${LDFLAGS}"
)
emake "${myemakeargs[@]}"
}
src_install() {
emake "install"
}