aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/APKBUILD
blob: f5ef3f7d5b645b41cccf18eb70d951a703a62339 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=3.0.3
_ver=${pkgver%_git*}
pkgrel=1
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-init-support-individual-splash-image-per-fbdev.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="3bd3f1ecf741edd1383b3ea2a1a1e535  mkinitfs-3.0.3.tar.xz
03234f681afa68660f8aa452fb32b158  0001-init-support-individual-splash-image-per-fbdev.patch"
sha256sums="42f6681e45e6655b25b8e3fdcb6ba75d38dc65d968cd2b2d33e57542aca23c6e  mkinitfs-3.0.3.tar.xz
e798f60474e0e337809c2aa281cfbb869e358e7dca68dc25ebdf884824866b78  0001-init-support-individual-splash-image-per-fbdev.patch"
sha512sums="3ab240c6fe5c44310da91933865fca0c6fdb1a0a54a4af1d33e9a5e1f682b7b2d5b55cd967899edbd5f99e5d76602df0410fc6d3a1dceb154f9bcb6e1b05b462  mkinitfs-3.0.3.tar.xz
5772a3ef7dacd9cc39f305e3c5267f74b8d2c76df5a73bb49400ce1c5b272f1ff559215c2009c806e03ae27c1990a0fe8728c584d8b0fe45529f17ea6b3ff47a  0001-init-support-individual-splash-image-per-fbdev.patch"