# Maintainer: Natanael Copa pkgname=mkinitfs pkgver=2.4.3 pkgrel=2 pkgdesc="Tool to generate initramfs images for Alpine" url=http://git.alpinelinux.org/cgit/mkinitfs depends="busybox apk-tools>=2.0" triggers="$pkgname.trigger=/usr/share/kernel/*" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 0001-init-fix-inittab-for-users-who-upgrades-from-pre-ope.patch 0001-init-search-boot-repositories-after-relocation.patch 0001-Revert-init-only-use-etc-apk-world-when-it-exists.patch eglibc.patch " arch="noarch" license="GPL-2" prepare() { cd "$srcdir"/$pkgname-$pkgver # If we are using eglibc/glibc we need to include eglibc libs # instead of uclibc libs. for i in $source; do case $i in eglibc.patch) case "$CHOST" in *-gnu) patch -p1 -i "$srcdir"/eglibc.patch || return 1 ;; esac ;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$srcdir"/$pkgname-$pkgver make VERSION=$pkgver-r$pkgrel || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make install DESTDIR="$pkgdir" || return 1 } md5sums="7373acb2159e24ba120ee46b0deb6bc4 mkinitfs-2.4.3.tar.bz2 ba969f3b8d8a0dd74319492eb41a712b 0001-init-fix-inittab-for-users-who-upgrades-from-pre-ope.patch bd9fd3813c9c28b42a1eeb30f65718e5 0001-init-search-boot-repositories-after-relocation.patch 7aea167ef747a6f0d92081628358083a 0001-Revert-init-only-use-etc-apk-world-when-it-exists.patch 067649665a767ff1a08578e1f4e61524 eglibc.patch"