summaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/APKBUILD
blob: 23a7fd6538c3b9ba01ddb0685c943f301a73f47c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=2.7.0
_ver=${pkgver%_git*}
pkgrel=2
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="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-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
	0001-init-fix-loading-of-fbcon.patch
	"
arch="noarch"
license="GPL-2"

_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="fbf7a5ec2530490f9edd8df4541eff99  mkinitfs-2.7.0.tar.xz
de01f4ac9c44fe84ce0022bd56f1f386  0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
324e26c1648699a1500add5095157220  0001-init-fix-loading-of-fbcon.patch"
sha256sums="99019951e0ea914f00bf94dea69a0f9456bdb4f5934d8c6de3e5ed628b4734e6  mkinitfs-2.7.0.tar.xz
a1ee3fdffbf2bf8311e8d37f6e8b3d6c0b787dc3e1e6a02bf45fa9dfe84baa33  0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
cfc5af8542966624ef7b5afc1f0c70117ae393d4446386dcf6940d2ef9d1885f  0001-init-fix-loading-of-fbcon.patch"
sha512sums="ec0bad81773374ae7221da53cc889b3bddc2749c207715817f691ba1fbba5ee3967c1656283212525f0486a23b9b05379900473ee6188474bdbd6325ee50d1da  mkinitfs-2.7.0.tar.xz
3f053f0956697cb38e1248b52365d033e22910ae44437a4f64eef85fe426a2f4e90b66557c06f053c8220466fc2f54c6d4de8da1a8db7466b4ddac4bf13372a7  0001-init-lvm-run-vgchange-even-if-vgscan-does-not-return.patch
434af8d7867f13c6820ea2e45e53ce2d9129d664809c1a6605b5a1c8250dcec32109fecae47972853cf6b8cefc2fe1863c08d222cd95c5ee626bbf78c8a3bb15  0001-init-fix-loading-of-fbcon.patch"