aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/APKBUILD
blob: a21dd2a8cf73883200c0b16f44a2fae7e5814274 (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.1
_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-fix-grep-to-refer-to-the-securetty-file.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="4df6d56c154d9752c475055037de1fc0  mkinitfs-3.0.1.tar.xz
9008a4762c17bf5adb45c6a73a1af043  0001-init-fix-grep-to-refer-to-the-securetty-file.patch"
sha256sums="06c828525fdc25dde4d3b558f3351a97de1df396020d5d30ee520ed2894b7bea  mkinitfs-3.0.1.tar.xz
1ed024fd8a7f9481380a6d1a7be0358f56365a0cc1d73161526f3e19261c516f  0001-init-fix-grep-to-refer-to-the-securetty-file.patch"
sha512sums="4b3566b63b74eecca9d09c7c0cdc4d0217a272a6b1ef08c1e798b1f14f8de0de791d4ba0f03901affb5c08d52b2907eae9fc2706e51860850ff932261d0e7662  mkinitfs-3.0.1.tar.xz
359f745689ef0514b6849cc4d7a14c97efc736066fbbbf58eebfb95182c39292e6e695b465672edc1db5abf9aeee1880d8a651b420a9a2f354203b2d368e7ab3  0001-init-fix-grep-to-refer-to-the-securetty-file.patch"