blob: a18c4e8496a7b828dd4d6e770654c765d090e43a (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=2.1.3
pkgrel=1
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="busybox apk-tools>=2.0"
triggers="$pkgname.trigger:/usr/share/kernel/*"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
eglibc.patch
0001-init-mount-devices-as-read-only.patch
"
arch="x86 x86_64"
license="GPL-2"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
patch -p1 -i "$srcdir"/0001-init-mount-devices-as-read-only.patch \
|| return 1
# If we are using eglibc/glibc we need to include eglibc libs
# instead of uclibc libs.
case "$CHOST" in
*-gnu)
patch -p1 -i "$srcdir"/eglibc.patch || return 1
;;
esac
}
build() {
cd "$srcdir"/$pkgname-$pkgver
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make install DESTDIR="$pkgdir" || return 1
}
md5sums="36bea9db1d83d2fd9860130b1cdec0d0 mkinitfs-2.1.3.tar.bz2
e59c2f7de496fe430b07e32fd812ebe0 eglibc.patch
96cfe927afb70e1af94a9c6fe8f5acca 0001-init-mount-devices-as-read-only.patch"
|