aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/APKBUILD
blob: 2ab8ce82ab34b0b30f95abac1b56730b9ef0789d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=3.0.4
_ver=${pkgver%_git*}
pkgrel=3
pkgdesc="Tool to generate initramfs images for Alpine"
url="http://git.alpinelinux.org/cgit/mkinitfs"
makedepends="kmod-dev util-linux-dev cryptsetup-dev linux-headers"
depends="acct busybox apk-tools>=2.0 lddtree>=1.25"
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
	0001-nlplug-findfs-increase-the-sys-recursion-limit.patch
	0001-init-add-crc32-modules-for-raid5.patch
	0001-nlplug-findfs-increase-max-delay.patch
	"
arch="all"
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="682a28918a7013d198b443e6b71a4df2  mkinitfs-3.0.4.tar.xz
fc43c3f1f037b6902179c5d90c97c8fc  0001-nlplug-findfs-increase-the-sys-recursion-limit.patch
0253c3bba385402a7bfa4a7e364dd36c  0001-init-add-crc32-modules-for-raid5.patch
257abd19e0904f581c06a73441ade078  0001-nlplug-findfs-increase-max-delay.patch"
sha256sums="f8ca92bf99870ba3076117e4af7fa56659bf2fa3f18a924507b6541ad10475cc  mkinitfs-3.0.4.tar.xz
f7b983025fdb5cfdeedced11e445989e384e5d5773daf6f062ec32f8853b3cb7  0001-nlplug-findfs-increase-the-sys-recursion-limit.patch
cfd3db306374cfdb53b894e1397f8a26764553e060ebeac44ca436f20d580982  0001-init-add-crc32-modules-for-raid5.patch
e4f54925aad1d9474e43a950f2d7d8070d76cb2677dd61acf2c05ac1fd458cde  0001-nlplug-findfs-increase-max-delay.patch"
sha512sums="c0d2f6fb9d03afe2358dc0c1aecfd6aac46f69c63ed62e8513d525e54d3abb077f6b91ded4085c10480480d7ee3e8d0d6e91495b723ae2dc78c455d92329021d  mkinitfs-3.0.4.tar.xz
fae8f44e2e2fa0898ee837fd88de5ada4ffb4c89c65fdda4ed3cffac7ae56c5dd6e01617f9b99a5e4aceacbd53ebdb879ea7c5562ecf0cbd7dce21af2f6da539  0001-nlplug-findfs-increase-the-sys-recursion-limit.patch
3b66146e77fe7ee46a3ae73016148c932954f1460a26eeb65cd430d61c3a2347ddaddc2cdd25a0cbfc3601f715af9c32fc0da2d0b7479d07234546ebfc712476  0001-init-add-crc32-modules-for-raid5.patch
b0d56a7f4e1012e0d4a3c0b058acf68844e2012474ffc5dca7a6408638f7443732f18f6f9e11928dd372533963f4361365c462675f5bd71fb373ebe7f2104c85  0001-nlplug-findfs-increase-max-delay.patch"