# Maintainer: Natanael Copa pkgname=mkinitfs pkgver=3.7.0 # shellcheck disable=SC2034 # used for git versions, keep around for next time _ver=${pkgver%_git*} pkgrel=4 pkgdesc="Tool to generate initramfs images for Alpine" url="https://gitlab.alpinelinux.org/alpine/mkinitfs" arch="all" license="GPL-2.0-only" # currently we do not ship any testsuite options="!check" makedepends_host="busybox kmod-dev util-linux-dev cryptsetup-dev linux-headers" makedepends="$makedepends_host" depends=" apk-tools>=2.9.1 busybox-binsh busybox>=1.28.2-r1 kmod lddtree>=1.25 mdev-conf " subpackages="$pkgname-doc" install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade" triggers="$pkgname.trigger=/usr/share/kernel/*" source="https://gitlab.alpinelinux.org/alpine/mkinitfs/-/archive/$pkgver/mkinitfs-$pkgver.tar.gz mkinitfs-mdadm_fix.patch" provides="initramfs-generator" provider_priority=900 # highest build() { make VERSION=$pkgver-r$pkgrel } package() { make install DESTDIR="$pkgdir" } sha512sums=" 72d31cf5554a3fd3eb48bff79a2c81694f208e0bb727a997f875fdf847b90d028973dbbf1c71d1a7174806de5aab5e21810d852c0ef5f04e46c96367b751d9f4 mkinitfs-3.7.0.tar.gz 09d1a33499ee268528860d872a3a3ade319659ccc0df03cda3e738ca23399e45c903ff8aebb8542de4881fa6930db03b4cc6748715cb5f32967c9c9db6f5111e mkinitfs-mdadm_fix.patch "