# Maintainer: Natanael Copa pkgname=mkinitfs pkgver=2.8.0 _ver=${pkgver%_git*} pkgrel=3 pkgdesc="Tool to generate initramfs images for Alpine" url=http://git.alpinelinux.org/cgit/mkinitfs depends="acct busybox apk-tools>=2.0 lddtree>=1.25" install="$pkgname.pre-upgrade" triggers="$pkgname.trigger=/usr/share/kernel/*" source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz 0001-mkinitfs-copy-modules.order-and-modules.builtin-if-t.patch 0001-improve-default-config.patch " arch="noarch" license="GPL2" _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$_builddir" make VERSION=$pkgver-r$pkgrel || return 1 } package() { cd "$_builddir" make install DESTDIR="$pkgdir" || return 1 } md5sums="1a321336d97b22257349ddd36884ec34 mkinitfs-2.8.0.tar.xz 25e11e719a8d90e1e19079c1ba517285 0001-mkinitfs-copy-modules.order-and-modules.builtin-if-t.patch 63132efa1597953b89e63d4993db1e99 0001-improve-default-config.patch" sha256sums="5ffe4c5ec9e0ff4581e5b24301fd30d0964120d6b30ee78ea79f31ff48eeab73 mkinitfs-2.8.0.tar.xz 892248aa8561596845794f1a3682456eaedcb7a158b19be40292363856c0a826 0001-mkinitfs-copy-modules.order-and-modules.builtin-if-t.patch 64c5ec7dbd15b39e483b9ff51dc6f033a6902601e16fc420a76265f9eb8f0608 0001-improve-default-config.patch" sha512sums="c103003f95c7d7d94daa41d0a81b210a0208c93d77203978554fb127a21e2f143b56990865fc53e2c5c732ef663603b297da63d31f915b1e3a3e0f3818aa8f2e mkinitfs-2.8.0.tar.xz 4b5e259a5fccef757bc6c7fe79a6ce71e91c210e7f53cfd8e6fbff2737acb3bae7e915a13f3523ff46689480aa0eb7aba5419ea31c7c814e47f4db06faf7746c 0001-mkinitfs-copy-modules.order-and-modules.builtin-if-t.patch 2571ce198e3f2b951a0a273b74c76af8465306f66051e92ce221ff087531ad6a64540091e43a9015688b7e59f6c1310042d9839cf58c70759624d912923dc922 0001-improve-default-config.patch"