aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/APKBUILD
blob: 6cec3c9ebb8773f0a28346bf074554fe1c120ce7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=3.1.0
_ver=${pkgver%_git*}
pkgrel=4
pkgdesc="Tool to generate initramfs images for Alpine"
url="http://git.alpinelinux.org/cgit/mkinitfs"
makedepends_build=""
makedepends_host="kmod-dev util-linux-dev cryptsetup-dev linux-headers"
makedepends="$makedepends_build $makedepends_host"
depends="busybox apk-tools>=2.7.5 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-features-ext4-needs-crc32.patch
	0002-fix-booting-from-btrfs-raid.patch
	0003-skip-hooks-on-diskless-install.patch
	"
arch="all"
license="GPL2"

builddir="$srcdir"/$pkgname-$_ver
build() {
	cd "$builddir"
	make VERSION=$pkgver-r$pkgrel || return 1
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir" || return 1
}

sha512sums="ec80702c6b41cb7898679377bef949cc1079b006c2dcc760c801f60a411eb1d3b3fd34ae2088b0bd3779202953466bce6efd62253d93dda32a8bca9bcd8942fc  mkinitfs-3.1.0.tar.xz
e66961014d5d68c6e5a529f365f2d8d17fb0c10892b4a61d0c7838ae01ed11f1749912badd902af3a9b5452de72647dd007dda1653c4b0fcd9a6b95e7bf834b9  0001-features-ext4-needs-crc32.patch
97c3864596059e134529fa395b05eca556c7d90005716716e67895f021e6f1fe33b2f1d85f1145048e092aae595da0bff5578caa23863224042982dabb7b7993  0002-fix-booting-from-btrfs-raid.patch
f5c9b21e53c663dac1b8f33f929dbe067492f0dc1bd5ef5310ef531033f31fc3fa0b6de6dce03cecaf90b8ed47b278d0f1f7c64dbbeede7621c895ee3ea79864  0003-skip-hooks-on-diskless-install.patch"